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

/*
 * Copyright 2024 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/ScratchResourceManager.h"

#include "src/gpu/graphite/Resource.h"
#include "src/gpu/graphite/ResourceProvider.h"
#include "src/gpu/graphite/Texture.h"
#include "src/gpu/graphite/TextureProxy.h"

namespace skgpu::graphite {

ScratchResourceManager::ScratchResourceManager(ResourceProvider* resourceProvider,
                                               std::unique_ptr<ProxyReadCountMap> proxyCounts)
        :{}

ScratchResourceManager::~ScratchResourceManager() = default;

sk_sp<Texture> ScratchResourceManager::getScratchTexture(SkISize dimensions,
                                                         const TextureInfo& info,
                                                         std::string_view label) {}

void ScratchResourceManager::returnTexture(sk_sp<Texture> texture) {}

void ScratchResourceManager::pushScope() {}

void ScratchResourceManager::popScope() {}

void ScratchResourceManager::notifyResourcesConsumed() {}

void ScratchResourceManager::markResourceInUse(PendingUseListener* listener) {}

}  // namespace skgpu::graphite