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

Unified Diff: ui/gfx/canvas.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 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/events/gesture_detection/gesture_provider.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index 009bbd23fbdbc8d2086c135b920537b0c4d64f71..49e32350a42e45c8c498aa7cd00534f6c578b4fb 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -25,7 +25,7 @@ namespace gfx {
Canvas::Canvas(const Size& size, float image_scale, bool is_opaque)
: image_scale_(image_scale),
canvas_(NULL) {
- Size pixel_size = ToCeiledSize(ScaleSize(size, image_scale));
+ Size pixel_size = ScaleToCeiledSize(size, image_scale);
owned_canvas_ = skia::AdoptRef(skia::CreatePlatformCanvas(pixel_size.width(),
pixel_size.height(),
is_opaque));
@@ -71,7 +71,7 @@ void Canvas::RecreateBackingCanvas(const Size& size,
float image_scale,
bool is_opaque) {
image_scale_ = image_scale;
- Size pixel_size = ToFlooredSize(ScaleSize(size, image_scale));
+ Size pixel_size = ScaleToFlooredSize(size, image_scale);
owned_canvas_ = skia::AdoptRef(skia::CreatePlatformCanvas(pixel_size.width(),
pixel_size.height(),
is_opaque));
« no previous file with comments | « ui/events/gesture_detection/gesture_provider.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698