| Index: src/gpu/gl/debug/GrDebugGL.h
|
| diff --git a/src/gpu/gl/debug/GrDebugGL.h b/src/gpu/gl/debug/GrDebugGL.h
|
| index ad6edffdf58a8bc8618af6e41591bd10e67267a4..9192725d1d454951757ec5831d2107420186dab1 100644
|
| --- a/src/gpu/gl/debug/GrDebugGL.h
|
| +++ b/src/gpu/gl/debug/GrDebugGL.h
|
| @@ -114,6 +114,11 @@ public:
|
| }
|
| }
|
|
|
| + static void abandon() {
|
| + SkASSERT(gStaticRefCount > 0);
|
| + gObj->fAbandoned = true;
|
| + }
|
| +
|
| protected:
|
|
|
| private:
|
| @@ -132,6 +137,8 @@ private:
|
| GrTextureUnitObj *fTextureUnits[kDefaultMaxTextureUnits];
|
| GrVertexArrayObj *fVertexArray;
|
|
|
| + bool fAbandoned;
|
| +
|
| typedef GrFakeRefObj *(*Create)();
|
|
|
| static Create gFactoryFunc[kObjTypeCount];
|
|
|