Index: bench/GrResourceCacheBench.cpp |
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp |
index 91c77fb589c4c4617ad0814026fd53d4cf4591bb..6d631ddb2c4b62f74420a8c32f5c9816f7012403 100644 |
--- a/bench/GrResourceCacheBench.cpp |
+++ b/bench/GrResourceCacheBench.cpp |
@@ -36,10 +36,6 @@ public: |
virtual ~StencilResource() { this->release(); } |
- virtual size_t gpuMemorySize() const SK_OVERRIDE { |
- return 100 + ((fID % 1 == 0) ? -5 : 6); |
- } |
- |
static GrResourceKey ComputeKey(int width, int height, int sampleCnt) { |
return GrStencilBuffer::ComputeKey(width, height, sampleCnt); |
} |
@@ -47,6 +43,10 @@ public: |
int fID; |
private: |
+ virtual size_t onGpuMemorySize() const SK_OVERRIDE { |
+ return 100 + ((fID % 1 == 0) ? -5 : 6); |
+ } |
+ |
typedef GrGpuResource INHERITED; |
}; |
@@ -61,10 +61,6 @@ public: |
virtual ~TextureResource() { this->release(); } |
- virtual size_t gpuMemorySize() const SK_OVERRIDE { |
- return 100 + ((fID % 1 == 0) ? -40 : 33); |
- } |
- |
static GrResourceKey ComputeKey(const GrSurfaceDesc& desc) { |
GrCacheID::Key key; |
memset(&key, 0, sizeof(key)); |
@@ -79,6 +75,10 @@ public: |
int fID; |
private: |
+ virtual size_t onGpuMemorySize() const SK_OVERRIDE { |
+ return 100 + ((fID % 1 == 0) ? -40 : 33); |
+ } |
+ |
typedef GrGpuResource INHERITED; |
}; |