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

Unified Diff: gm/shapes.cpp

Issue 2357273003: Do not set bounds on SkLiteRecorder
Patch Set: Created 4 years, 3 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: gm/shapes.cpp
diff --git a/gm/shapes.cpp b/gm/shapes.cpp
index c746a493df04cab1539e88dc1e428ffcdb9b6cf3..23cffe54526af133882aa90cdacb2cd9889c8488 100644
--- a/gm/shapes.cpp
+++ b/gm/shapes.cpp
@@ -66,7 +66,7 @@ protected:
canvas->clear(SK_ColorWHITE);
canvas->save();
- canvas->translate(canvas->imageInfo().width() / 2.f, canvas->imageInfo().height() / 2.f);
+ canvas->translate(this->onISize().width() / 2.f, this->onISize().height() / 2.f);
this->drawShapes(canvas);
canvas->restore();
}
« no previous file with comments | « gm/imageblurtiled.cpp ('k') | src/core/SkCanvas.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698