diff options
author | 2015-10-28 11:01:41 -0700 | |
---|---|---|
committer | 2015-10-28 11:01:41 -0700 | |
commit | 544b9aa9e77389034f207601508cc2e46d08d6e6 (patch) | |
tree | 5d084e1809fe5c52a2885f335db11d44d360c91e /src/gpu/GrClipMaskManager.h | |
parent | d5fa77ff6a0da93c613e8fc556d96197005ff768 (diff) |
Remove gpu-side clip mask merging from clip mask manager
In the clip mask merging path, the CMM creates new renderTargets and draws to them. In the non-MDB world this is okay b.c. all the draws land in the same drawTarget anyway. In the MDB world the draws for the new renderTargets have to land in different drawTargets.
This can be resolved by a lot of plumbing and refactoring to create drawContexts for the created renderTargets or by removing the mask-merging drawing path.
Since, https://codereview.chromium.org/1424853002/ (Disable gpu-side clip mask merging in the clip mask manager), appears to have stuck, this CL removes the clip mask merging code.
BUG=skia:4094
BUG=skia:4519
Review URL: https://codereview.chromium.org/1418073005
Diffstat (limited to 'src/gpu/GrClipMaskManager.h')
-rw-r--r-- | src/gpu/GrClipMaskManager.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h index b0e9b4f943..2d9816c84c 100644 --- a/src/gpu/GrClipMaskManager.h +++ b/src/gpu/GrClipMaskManager.h @@ -21,6 +21,7 @@ class GrDrawTarget; class GrPathRenderer; class GrPathRendererChain; +class GrResourceProvider; class GrTexture; class SkPath; @@ -72,6 +73,8 @@ public: private: inline GrContext* getContext(); + inline const GrCaps* caps() const; + inline GrResourceProvider* resourceProvider(); /** * Informs the helper function adjustStencilParams() about how the stencil @@ -134,15 +137,6 @@ private: const SkClipStack::Element*, GrPathRenderer* pr = nullptr); - void mergeMask(GrPipelineBuilder*, - GrTexture* dstMask, - GrTexture* srcMask, - SkRegion::Op op, - const SkIRect& dstBound, - const SkIRect& srcBound); - - GrTexture* createTempMask(int width, int height); - /** * Called prior to return control back the GrGpu in setupClipping. It updates the * GrPipelineBuilder with stencil settings that account for stencil-based clipping. |