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

Unified Diff: ui/gfx/canvas_paint_gtk.cc

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new usage of scale in FastShowPickler Created 7 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
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/gfx/canvas_paint_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_paint_gtk.cc
diff --git a/ui/gfx/canvas_paint_gtk.cc b/ui/gfx/canvas_paint_gtk.cc
index 4c185c02e03ea515b013f13a16fb2907aed978ed..3faa064dc1f36ce70aea32520d3d8ca47b9f0fdc 100644
--- a/ui/gfx/canvas_paint_gtk.cc
+++ b/ui/gfx/canvas_paint_gtk.cc
@@ -53,7 +53,7 @@ CanvasSkiaPaint::~CanvasSkiaPaint() {
void CanvasSkiaPaint::Init(bool opaque) {
GdkRectangle bounds = rectangle();
RecreateBackingCanvas(gfx::Size(bounds.width, bounds.height),
- ui::SCALE_FACTOR_100P, opaque);
+ 1.0f, opaque);
skia::PlatformCanvas* canvas = platform_canvas();
@@ -66,4 +66,4 @@ void CanvasSkiaPaint::Init(bool opaque) {
} // namespace gfx
-
+
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/gfx/canvas_paint_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698