chromium/third_party/skia/src/core/SkPixelRef.cpp

/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "include/core/SkPixelRef.h"

#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "src/core/SkBitmapCache.h"
#include "src/core/SkNextID.h"
#include "src/core/SkPixelRefPriv.h"

#include <atomic>
#include <utility>

uint32_t SkNextID::ImageID() {}

///////////////////////////////////////////////////////////////////////////////

SkPixelRef::SkPixelRef(int width, int height, void* pixels, size_t rowBytes)
    :{}

SkPixelRef::~SkPixelRef() {}

// This is undefined if there are clients in-flight trying to use us
void SkPixelRef::android_only_reset(int width, int height, size_t rowBytes) {}

void SkPixelRef::needsNewGenID() {}

uint32_t SkPixelRef::getGenerationID() const {}

void SkPixelRef::addGenIDChangeListener(sk_sp<SkIDChangeListener> listener) {}

// we need to be called *before* the genID gets changed or zerod
void SkPixelRef::callGenIDChangeListeners() {}

void SkPixelRef::notifyPixelsChanged() {}

void SkPixelRef::setImmutable() {}

void SkPixelRef::setImmutableWithID(uint32_t genID) {}

void SkPixelRef::setTemporarilyImmutable() {}

void SkPixelRef::restoreMutability() {}

sk_sp<SkPixelRef> SkMakePixelRefWithProc(int width, int height, size_t rowBytes, void* addr,
                                         void (*releaseProc)(void* addr, void* ctx), void* ctx) {}