diff options
author | 2012-10-05 20:13:28 +0000 | |
---|---|---|
committer | 2012-10-05 20:13:28 +0000 | |
commit | 5b3e890c376f2211218c43edd11939cfc78fd60a (patch) | |
tree | 83fbe3b7080aade2d97934bdf4779b050415791e /src/gpu/GrInOrderDrawBuffer.cpp | |
parent | c7448cef098b835d6f9adf8a365fde9de076f178 (diff) |
Move some auto restore helpers from GrDrawTarget to GrDrawState.
R=robertphillips@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk@5846 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrInOrderDrawBuffer.cpp')
-rw-r--r-- | src/gpu/GrInOrderDrawBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index c3c1e8982a..eaee5c9204 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -115,7 +115,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect, } } } - GrDrawTarget::AutoDeviceCoordDraw adcd(this, explicitCoordMask); + GrDrawState::AutoDeviceCoordDraw adcd(this->drawState(), explicitCoordMask); if (!adcd.succeeded()) { return; } @@ -129,7 +129,7 @@ void GrInOrderDrawBuffer::drawRect(const GrRect& rect, // Now that the paint's color is stored in the vertices set it to // white so that the following code can batch all the rects regardless // of paint color - AutoColorRestore acr(this, SK_ColorWHITE); + GrDrawState::AutoColorRestore acr(this->drawState(), SK_ColorWHITE); // we don't want to miss an opportunity to batch rects together // simply because the clip has changed if the clip doesn't affect |