| Index: src/gpu/gl/GrGLPathRange.cpp
|
| diff --git a/src/gpu/gl/GrGLPathRange.cpp b/src/gpu/gl/GrGLPathRange.cpp
|
| index 5e89cb5d87871941bcc40d6b59a5e9b183547607..9e2b2e73269e667d4f84c8e781bb9cedc61263fa 100644
|
| --- a/src/gpu/gl/GrGLPathRange.cpp
|
| +++ b/src/gpu/gl/GrGLPathRange.cpp
|
| @@ -14,7 +14,7 @@
|
| GrGLPathRange::GrGLPathRange(GrGpuGL* gpu, size_t size, const SkStrokeRec& stroke)
|
| : INHERITED(gpu, size, stroke),
|
| fBasePathID(gpu->pathRendering()->genPaths(fSize)),
|
| - fNumDefinedPaths(0) {
|
| + fGpuMemorySize(0) {
|
| }
|
|
|
| GrGLPathRange::~GrGLPathRange() {
|
| @@ -30,8 +30,7 @@ void GrGLPathRange::initAt(size_t index, const SkPath& skPath) {
|
| // Make sure the path at this index hasn't been initted already.
|
| SkASSERT(GR_GL_FALSE == gpu->pathRendering()->isPath(fBasePathID + index));
|
|
|
| - GrGLPath::InitPathObject(gpu, fBasePathID + index, skPath, fStroke);
|
| - ++fNumDefinedPaths;
|
| + fGpuMemorySize += GrGLPath::InitPathObject(gpu, fBasePathID + index, skPath, fStroke);
|
| this->didChangeGpuMemorySize();
|
| }
|
|
|
|
|