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

Unified Diff: gm/simplerect.cpp

Issue 2261063002: add translate to exercise non-identity ctm performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/simplerect.cpp
diff --git a/gm/simplerect.cpp b/gm/simplerect.cpp
index 36434f826c96e334d1829145073427d6d5d54978..640fafcab20f8d2bf1e04e4c14a8ee552b7b1cea 100644
--- a/gm/simplerect.cpp
+++ b/gm/simplerect.cpp
@@ -26,6 +26,8 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
+ canvas->translate(1, 1); // want to exercise non-identity ctm performance
+
const SkScalar min = -20;
const SkScalar max = 800;
const SkScalar size = 20;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698