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

Unified Diff: ui/gfx/canvas_paint_mac.mm

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_paint_gtk.cc ('k') | ui/gfx/canvas_paint_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_paint_mac.mm
diff --git a/ui/gfx/canvas_paint_mac.mm b/ui/gfx/canvas_paint_mac.mm
index c8796afedae60b1dd56a6cb9f59de79ea883c4e2..8ba697d1091ec3dd6d99fd03fe5d2e7832719c61 100644
--- a/ui/gfx/canvas_paint_mac.mm
+++ b/ui/gfx/canvas_paint_mac.mm
@@ -58,9 +58,8 @@ void CanvasSkiaPaint::Init(bool opaque) {
// Assume that the x scale and the y scale are the same.
CGFloat scale = scaled_unit_rect.size.width;
- ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(scale);
gfx::Size size(NSWidth(rectangle_), NSHeight(rectangle_));
- RecreateBackingCanvas(size, scale_factor, opaque);
+ RecreateBackingCanvas(size, scale, opaque);
skia::PlatformCanvas* canvas = platform_canvas();
canvas->clear(SkColorSetARGB(0, 0, 0, 0));
@@ -74,4 +73,4 @@ void CanvasSkiaPaint::Init(bool opaque) {
} // namespace skia
-
+
« no previous file with comments | « ui/gfx/canvas_paint_gtk.cc ('k') | ui/gfx/canvas_paint_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698