Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index f8e045ba7f8f41f6d96a625bff3b6b5daea8f59a..9d79a6dc89cda3249e1035562fdd2054e2b2dd34 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -77,6 +77,15 @@ bool path_needs_SW_renderer(GrContext* context, |
} |
} |
+GrClipMaskManager::GrClipMaskManager(GrClipTarget* clipTarget) |
+ : fCurrClipMaskType(kNone_ClipMaskType) |
+ , fAACache(clipTarget->getContext()->resourceProvider()) |
+ , fClipTarget(clipTarget) |
+ , fClipMode(kIgnoreClip_StencilClipMode) { |
+} |
+ |
+GrContext* GrClipMaskManager::getContext() { return fClipTarget->getContext(); } |
+ |
/* |
* This method traverses the clip stack to see if the GrSoftwarePathRenderer |
* will be used on any element. If so, it returns true to indicate that the |
@@ -1110,11 +1119,6 @@ void GrClipMaskManager::purgeResources() { |
fAACache.purgeResources(); |
} |
-void GrClipMaskManager::setClipTarget(GrClipTarget* clipTarget) { |
- fClipTarget = clipTarget; |
- fAACache.setContext(clipTarget->getContext()); |
-} |
- |
void GrClipMaskManager::adjustPathStencilParams(const GrStencilAttachment* stencilAttachment, |
GrStencilSettings* settings) { |
if (stencilAttachment) { |