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

Unified Diff: src/gpu/GrGpu.h

Issue 695873002: small fix for clip mask cache clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 6 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/GrDrawTarget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 62abd825d3da4738e429e59eefc837f5c097138d..7c90ee4702c9d1591509464c467a6e9c4ab3e50d 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -275,12 +275,6 @@ public:
bool insideClip,
GrRenderTarget* renderTarget = NULL) SK_OVERRIDE;
- virtual void purgeResources() SK_OVERRIDE {
- // The clip mask manager can rebuild all its clip masks so just
- // get rid of them all.
- fClipMaskManager.purgeResources();
- }
-
// After the client interacts directly with the 3D context state the GrGpu
// must resync its internal state and assumptions about 3D context state.
// Each time this occurs the GrGpu bumps a timestamp.
@@ -471,10 +465,6 @@ private:
void prepareIndexPool();
void resetContext() {
- // We call this because the client may have messed with the
- // stencil buffer. Perhaps we should detect whether it is a
- // internally created stencil buffer and if so skip the invalidate.
- fClipMaskManager.invalidateStencilMask();
this->onResetContext(fResetBits);
fResetBits = 0;
++fResetTimestamp;
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698