Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1377943003: Remove separate cache for clip mask textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrResourceProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index b12ac99de4504c5766ef0f38c26d6a5d1f32224d..3c28b1e25430c8c6a5c99b4b493f1038a6eb8adf 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -20,6 +20,8 @@
#include "GrVertexBuffer.h"
#include "GrXferProcessor.h"
+#include "batches/GrDrawBatch.h"
+
#include "SkClipStack.h"
#include "SkMatrix.h"
#include "SkPath.h"
@@ -34,7 +36,6 @@ class GrBatch;
class GrClip;
class GrCaps;
class GrPath;
-class GrDrawBatch;
class GrDrawPathBatchBase;
class GrPathRangeDraw;
@@ -170,15 +171,6 @@ public:
GrSurface* src,
const SkIRect& srcRect,
const SkIPoint& dstPoint);
- /**
- * Release any resources that are cached but not currently in use. This
- * is intended to give an application some recourse when resources are low.
- * TODO: Stop holding on to resources.
- */
- virtual void purgeResources() {
- // The clip mask manager can rebuild all its clip masks so just get rid of them all.
- fClipMaskManager->purgeResources();
- };
bool programUnitTest(GrContext* owner, int maxStages);
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698