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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 8422009: ui/gfx: Convert CreateCanvas to use gfx::Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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.h ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia.cc
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc
index 98e4776945ff134daf0f160267e5634d293910c5..4a7c7fc6b8f8bbd22a35ea96a21e360d388dc553 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -385,8 +385,8 @@ Canvas* Canvas::CreateCanvas() {
return new CanvasSkia;
}
-Canvas* Canvas::CreateCanvas(int width, int height, bool is_opaque) {
- return new CanvasSkia(width, height, is_opaque);
+Canvas* Canvas::CreateCanvas(const gfx::Size& size, bool is_opaque) {
+ return new CanvasSkia(size.width(), size.height(), is_opaque);
}
#if defined(OS_WIN) && !defined(USE_AURA)
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698