chromium/third_party/skia/src/gpu/graphite/Resource.cpp

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

#include "src/gpu/graphite/Resource.h"

#include "include/core/SkTraceMemoryDump.h"
#include "src/gpu/graphite/ResourceCache.h"

namespace skgpu::graphite {

namespace {
uint32_t create_unique_id() {}
} // namespace anonymous

Resource::Resource(const SharedContext* sharedContext,
                   Ownership ownership,
                   skgpu::Budgeted budgeted,
                   size_t gpuMemorySize,
                   bool commandBufferRefsAsUsageRefs)
        :{}

Resource::~Resource() {}

void Resource::registerWithCache(sk_sp<ResourceCache> returnCache) {}

bool Resource::notifyARefIsZero(LastRemovedRef removedRef) const {}

void Resource::internalDispose() {}

bool Resource::isPurgeable() const {}

void Resource::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {}

} // namespace skgpu::graphite