Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: src/gpu/GrSWMaskHelper.cpp

Issue 15780002: Replace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore::setIdentity(). s (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: undo unrelated change Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrSWMaskHelper.cpp
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
index 2cf56d63d633eb956144abcb1fbffb626fb353cc..fc34591fcd30422e5a3a99cb6ef3648e55d547ab 100644
--- a/src/gpu/GrSWMaskHelper.cpp
+++ b/src/gpu/GrSWMaskHelper.cpp
@@ -187,8 +187,8 @@ void GrSWMaskHelper::DrawToTargetWithPathMask(GrTexture* texture,
const GrIRect& rect) {
GrDrawState* drawState = target->drawState();
- GrDrawState::AutoDeviceCoordDraw adcd(drawState);
- if (!adcd.succeeded()) {
+ GrDrawState::AutoViewMatrixRestore avmr;
+ if (!avmr.setIdentity(drawState)) {
return;
}
enum {

Powered by Google App Engine
This is Rietveld 408576698