aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texdata.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-11 20:57:46 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-11 20:57:46 +0000
commit56c79b10377e358b8092d9c6ab3e1aacf2cd60e5 (patch)
tree0945f3dd6dd3a43c1d0fc9c5c08257bbc8996cdc /gm/texdata.cpp
parenteb311845c1b412a9a7d851444a70ec24ab60fb2c (diff)
Added GrContext::AutoClipStack to encapsulate setting\resetting of clip stack
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r--gm/texdata.cpp3
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);