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

Unified Diff: src/gpu/GrClipMaskCache.cpp

Issue 1144013007: Remove GrContext from GrClipMaskCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 years, 7 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/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClipMaskCache.cpp
diff --git a/src/gpu/GrClipMaskCache.cpp b/src/gpu/GrClipMaskCache.cpp
index 470cc4a2561d2afc580b1d697b009e7c0e5f2afd..a21eab78d7f82969dcfc0dbea52b73cd69c9f591 100644
--- a/src/gpu/GrClipMaskCache.cpp
+++ b/src/gpu/GrClipMaskCache.cpp
@@ -8,9 +8,9 @@
#include "GrClipMaskCache.h"
-GrClipMaskCache::GrClipMaskCache()
- : fContext(NULL)
- , fStack(sizeof(GrClipStackFrame)) {
+GrClipMaskCache::GrClipMaskCache(GrResourceProvider* resourceProvider)
+ : fStack(sizeof(GrClipStackFrame))
+ , fResourceProvider(resourceProvider) {
// We need an initial frame to capture the clip state prior to
// any pushes
SkNEW_PLACEMENT(fStack.push_back(), GrClipStackFrame);
« no previous file with comments | « src/gpu/GrClipMaskCache.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698