commit | 873ea0c93f202600ec2591bc1e2e5d7a1e05f59d | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Mar 30 15:55:32 2012 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Mar 30 15:55:32 2012 +0000 |
tree | a2099bcda7be79a4024fd2708279d7014330bf10 | |
parent | bd8d7adb0ac9533a04e7b7a481371d4c66bbbc9b [diff] [blame] |
Make fewer copies when using GrDrawTarget::AutoStateRestore Review URL: http://codereview.appspot.com/5938043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3557 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrTesselatedPathRenderer.cpp b/src/gpu/GrTesselatedPathRenderer.cpp index 3823bbd..23074d9 100644 --- a/src/gpu/GrTesselatedPathRenderer.cpp +++ b/src/gpu/GrTesselatedPathRenderer.cpp
@@ -354,7 +354,7 @@ GrDrawState::StageMask stageMask, bool antiAlias) { - GrDrawTarget::AutoStateRestore asr(target); + GrDrawTarget::AutoStateRestore asr(target, GrDrawTarget::kPreserve_ASRInit); GrDrawState* drawState = target->drawState(); // face culling doesn't make sense here GrAssert(GrDrawState::kBoth_DrawFace == drawState->getDrawFace());