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

Unified Diff: gm/drawregion.cpp

Issue 2282983003: Reduce CPU overhead on drawRegion() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update bench 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 | src/gpu/batches/GrRegionBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawregion.cpp
diff --git a/gm/drawregion.cpp b/gm/drawregion.cpp
index 1e9d6c55e2f1f5d8d6f32c0554049e44aef7cb89..a2633f9d9fc423f675025f6749efed2c8b5257f3 100644
--- a/gm/drawregion.cpp
+++ b/gm/drawregion.cpp
@@ -37,6 +37,8 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
+ canvas->translate(10, 10);
msarett 2016/08/26 18:41:55 Applying the view matrix is a no-op when it's iden
+
SkPaint paint;
paint.setStyle(SkPaint::kFill_Style);
paint.setColor(0xFFFF00FF);
« no previous file with comments | « no previous file | src/gpu/batches/GrRegionBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698