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

Unified Diff: bench/GameBench.cpp

Issue 1235393003: guard to remove DrawBitmapRectFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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: bench/GameBench.cpp
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp
index d9a397e19082732a74c2ab9f96e4b7a2177d81d0..3d9885f6920e825a695aba5ae317c3e878aa8457 100644
--- a/bench/GameBench.cpp
+++ b/bench/GameBench.cpp
@@ -204,11 +204,11 @@ protected:
4, verts, uvs, NULL, NULL,
indices, 6, p2);
} else {
- canvas->drawBitmapRect(fAtlas, &src, dst, &p,
- SkCanvas::kBleed_DrawBitmapRectFlag);
+ canvas->drawBitmapRect(fAtlas, src, dst, &p,
+ SkCanvas::kFast_SrcRectConstraint);
}
} else {
- canvas->drawBitmapRect(fCheckerboard, NULL, dst, &p);
+ canvas->drawBitmapRect(fCheckerboard, dst, &p);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698