commit | 56c79b10377e358b8092d9c6ab3e1aacf2cd60e5 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jul 11 20:57:46 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jul 11 20:57:46 2012 +0000 |
tree | 0945f3dd6dd3a43c1d0fc9c5c08257bbc8996cdc | |
parent | eb311845c1b412a9a7d851444a70ec24ab60fb2c [diff] [blame] |
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
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 316e4d6..c3c09fb 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp
@@ -89,8 +89,7 @@ } 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);