Index: src/gpu/gl/GrGLPathRange.h |
diff --git a/src/gpu/gl/GrGLPathRange.h b/src/gpu/gl/GrGLPathRange.h |
index 927310d651e004424b0f3d23b46d0c264a152e00..8e2df76efb571fcc7d560748fee9613596a18f95 100644 |
--- a/src/gpu/gl/GrGLPathRange.h |
+++ b/src/gpu/gl/GrGLPathRange.h |
@@ -26,13 +26,8 @@ public: |
virtual ~GrGLPathRange(); |
GrGLuint basePathID() const { return fBasePathID; } |
- |
virtual void initAt(size_t index, const SkPath&); |
- |
- // TODO: Use a better approximation for the individual path sizes. |
- virtual size_t gpuMemorySize() const SK_OVERRIDE { |
- return 100 * fNumDefinedPaths; |
- } |
+ virtual size_t gpuMemorySize() const SK_OVERRIDE { return fGpuMemorySize; } |
protected: |
virtual void onRelease() SK_OVERRIDE; |
@@ -40,7 +35,7 @@ protected: |
private: |
GrGLuint fBasePathID; |
- size_t fNumDefinedPaths; |
+ size_t fGpuMemorySize; |
typedef GrPathRange INHERITED; |
}; |