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

Unified Diff: bench/GameBench.cpp

Issue 1230823007: Revert of 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
« no previous file with comments | « bench/BitmapRectBench.cpp ('k') | gm/bitmaprect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GameBench.cpp
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp
index 3d9885f6920e825a695aba5ae317c3e878aa8457..d9a397e19082732a74c2ab9f96e4b7a2177d81d0 100644
--- a/bench/GameBench.cpp
+++ b/bench/GameBench.cpp
@@ -204,11 +204,11 @@
4, verts, uvs, NULL, NULL,
indices, 6, p2);
} else {
- canvas->drawBitmapRect(fAtlas, src, dst, &p,
- SkCanvas::kFast_SrcRectConstraint);
+ canvas->drawBitmapRect(fAtlas, &src, dst, &p,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
}
} else {
- canvas->drawBitmapRect(fCheckerboard, dst, &p);
+ canvas->drawBitmapRect(fCheckerboard, NULL, dst, &p);
}
}
}
« no previous file with comments | « bench/BitmapRectBench.cpp ('k') | gm/bitmaprect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698