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

Unified Diff: ui/gfx/canvas.h

Issue 12257016: (Not ready for review!) Toolbar and views high dpi support. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaned up more useless diffs. Created 7 years, 10 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 | « ui/base/resource/resource_bundle_win.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 7fee48399e28a3b361dad5a2f638e8fc05fd7f47..5845fd683adc9a2f233d31be24f01d0adebfaa3a 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -196,7 +196,11 @@ class UI_EXPORT Canvas {
void Translate(const gfx::Vector2d& offset);
+#if defined(ENABLE_HIDPI)
+ void Scale(double x_scale, double y_scale);
+#else
void Scale(int x_scale, int y_scale);
+#endif
// Fills the entire canvas' bitmap (restricted to current clip) with
// specified |color| using a transfer mode of SkXfermode::kSrcOver_Mode.
« no previous file with comments | « ui/base/resource/resource_bundle_win.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698