aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/simplerect.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-08-21 15:03:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-21 15:03:47 -0700
commit577e012e4058a5264477f760a6488c766ec942e7 (patch)
treef3bbc5941f8cbfd83543ac0508d4acb81cc4fe10 /gm/simplerect.cpp
parentce25041865e776a6c58d15ac3a201d5059bd98d9 (diff)
add translate to exercise non-identity ctm performance
Diffstat (limited to 'gm/simplerect.cpp')
-rw-r--r--gm/simplerect.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/simplerect.cpp b/gm/simplerect.cpp
index 36434f826c..640fafcab2 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;