From 5b3e890c376f2211218c43edd11939cfc78fd60a Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 5 Oct 2012 20:13:28 +0000 Subject: 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 --- src/gpu/GrInOrderDrawBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/GrInOrderDrawBuffer.cpp') 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 -- cgit v1.2.3