diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 20:57:46 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 20:57:46 +0000 |
commit | 56c79b10377e358b8092d9c6ab3e1aacf2cd60e5 (patch) | |
tree | 0945f3dd6dd3a43c1d0fc9c5c08257bbc8996cdc /gm/texdata.cpp | |
parent | eb311845c1b412a9a7d851444a70ec24ab60fb2c (diff) |
Added GrContext::AutoClipStack to encapsulate setting\resetting of clip stack
http://codereview.appspot.com/6343097/
git-svn-id: http://skia.googlecode.com/svn/trunk@4558 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r-- | gm/texdata.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 316e4d6044..c3c09fb57d 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -89,8 +89,7 @@ protected: } GrAutoUnref au(texture); - GrClip newClip(GrRect::MakeWH(2*S, 2*S)); - ctx->setClip(newClip); + GrContext::AutoClip acs(ctx, GrRect::MakeWH(2*S, 2*S)); ctx->setRenderTarget(target); |