/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrGpuResourcePriv_DEFINED #define GrGpuResourcePriv_DEFINED #include "include/private/base/SkAssert.h" #include "include/private/gpu/ganesh/GrTypesPriv.h" #include "src/gpu/ResourceKey.h" #include "src/gpu/ganesh/GrGpuResource.h" /** * This class allows code internal to Skia privileged access to manage the cache keys and budget * status of a GrGpuResource object. */ class GrGpuResource::ResourcePriv { … }; inline GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() { … } inline const GrGpuResource::ResourcePriv GrGpuResource::resourcePriv() const { … } #endif