diff options
Diffstat (limited to 'src/gpu/GrGeometryBuffer.h')
-rw-r--r-- | src/gpu/GrGeometryBuffer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gpu/GrGeometryBuffer.h b/src/gpu/GrGeometryBuffer.h index 3bb7118faf..2a5aab7a23 100644 --- a/src/gpu/GrGeometryBuffer.h +++ b/src/gpu/GrGeometryBuffer.h @@ -10,14 +10,14 @@ #ifndef GrGeometryBuffer_DEFINED #define GrGeometryBuffer_DEFINED -#include "GrResource.h" +#include "GrGpuObject.h" class GrGpu; /** * Parent class for vertex and index buffers */ -class GrGeometryBuffer : public GrResource { +class GrGeometryBuffer : public GrGpuObject { public: SK_DECLARE_INST_COUNT(GrGeometryBuffer); @@ -82,22 +82,22 @@ public: */ virtual bool updateData(const void* src, size_t srcSizeInBytes) = 0; - // GrResource overrides - virtual size_t sizeInBytes() const { return fSizeInBytes; } + // GrGpuObject overrides + virtual size_t gpuMemorySize() const { return fGpuMemorySize; } protected: - GrGeometryBuffer(GrGpu* gpu, bool isWrapped, size_t sizeInBytes, bool dynamic, bool cpuBacked) + GrGeometryBuffer(GrGpu* gpu, bool isWrapped, size_t gpuMemorySize, bool dynamic, bool cpuBacked) : INHERITED(gpu, isWrapped) - , fSizeInBytes(sizeInBytes) + , fGpuMemorySize(gpuMemorySize) , fDynamic(dynamic) , fCPUBacked(cpuBacked) {} private: - size_t fSizeInBytes; + size_t fGpuMemorySize; bool fDynamic; bool fCPUBacked; - typedef GrResource INHERITED; + typedef GrGpuObject INHERITED; }; #endif |