aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGeometryBuffer.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-12 11:13:39 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-12 11:13:39 -0800
commit69ed47f42d4877c178fdc0031cb01af2966ae235 (patch)
tree4e3101aa7db2206eaacfcf29f422d1e953f2cb0c /src/gpu/GrGeometryBuffer.h
parent703d3c7093f1fb8a40a46d465d9dd5ae60a456d5 (diff)
Make GrGpuResource::gpuMemorySize non-virtual w/ onGpuMemorySize virtual impl
Diffstat (limited to 'src/gpu/GrGeometryBuffer.h')
-rw-r--r--src/gpu/GrGeometryBuffer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrGeometryBuffer.h b/src/gpu/GrGeometryBuffer.h
index c3e1c65252..d6761831b1 100644
--- a/src/gpu/GrGeometryBuffer.h
+++ b/src/gpu/GrGeometryBuffer.h
@@ -98,9 +98,6 @@ public:
return this->onUpdateData(src, srcSizeInBytes);
}
- // GrGpuResource overrides
- virtual size_t gpuMemorySize() const { return fGpuMemorySize; }
-
protected:
GrGeometryBuffer(GrGpu* gpu, bool isWrapped, size_t gpuMemorySize, bool dynamic, bool cpuBacked)
: INHERITED(gpu, isWrapped)
@@ -110,6 +107,8 @@ protected:
, fCPUBacked(cpuBacked) {}
private:
+ virtual size_t onGpuMemorySize() const { return fGpuMemorySize; }
+
virtual void* onMap() = 0;
virtual void onUnmap() = 0;
virtual bool onUpdateData(const void* src, size_t srcSizeInBytes) = 0;