diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 16:25:59 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 16:25:59 +0000 |
commit | f0784bde753feaff601f703089872fc1af265328 (patch) | |
tree | e3c52590d7de9b9df62d569c02e576c0596551c4 /src/gpu/GrClipMaskManager.h | |
parent | eea3ab78e9f1680ada9bd471badc975e4d3cf8be (diff) |
Revert "Avoid re-rendering stencil clip for every draw with reducable clip stack"
This reverts commit 92a7d4bf6a371f1f864154be902e8d86938e560b.
Revert "fix mac 10.6 build"
This reverts commit 114cd1a9f2734aaed6914718814364811b78bd7f.
BUG=
Review URL: https://codereview.chromium.org/54543008
git-svn-id: http://skia.googlecode.com/svn/trunk@12087 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrClipMaskManager.h')
-rw-r--r-- | src/gpu/GrClipMaskManager.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h index f44a8e7b22..015c801d54 100644 --- a/src/gpu/GrClipMaskManager.h +++ b/src/gpu/GrClipMaskManager.h @@ -103,19 +103,18 @@ private: GrClipMaskCache fAACache; // cache for the AA path // Draws the clip into the stencil buffer - bool createStencilClipMask(int32_t elementsGenID, - GrReducedClip::InitialState initialState, + bool createStencilClipMask(GrReducedClip::InitialState initialState, const GrReducedClip::ElementList& elements, const SkIRect& clipSpaceIBounds, const SkIPoint& clipSpaceToStencilOffset); // Creates an alpha mask of the clip. The mask is a rasterization of elements through the // rect specified by clipSpaceIBounds. - GrTexture* createAlphaClipMask(int32_t elementsGenID, + GrTexture* createAlphaClipMask(int32_t clipStackGenID, GrReducedClip::InitialState initialState, const GrReducedClip::ElementList& elements, const SkIRect& clipSpaceIBounds); // Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture. - GrTexture* createSoftwareClipMask(int32_t elementsGenID, + GrTexture* createSoftwareClipMask(int32_t clipStackGenID, GrReducedClip::InitialState initialState, const GrReducedClip::ElementList& elements, const SkIRect& clipSpaceIBounds); @@ -123,7 +122,7 @@ private: // Gets a texture to use for the clip mask. If true is returned then a cached mask was found // that already contains the rasterization of the clip stack, otherwise an uninitialized texture // is returned. 'willUpload' is set when the alpha mask needs to be uploaded from the CPU. - bool getMaskTexture(int32_t elementsGenID, + bool getMaskTexture(int32_t clipStackGenID, const SkIRect& clipSpaceIBounds, GrTexture** result, bool willUpload); |