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

Unified Diff: ui/gfx/canvas.h

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 | « no previous file | ui/gfx/canvas_skia.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 5da0bced3251bbb82e11757e3ab819f628ca734d..96159578e5150433ccc64d1e805cdf36327105c3 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -29,6 +29,7 @@ class CanvasSkia;
class Font;
class Point;
class Rect;
+class Size;
// TODO(beng): documentation.
class UI_EXPORT Canvas {
@@ -81,7 +82,7 @@ class UI_EXPORT Canvas {
static Canvas* CreateCanvas();
// Creates a canvas with the specified size.
- static Canvas* CreateCanvas(int width, int height, bool is_opaque);
+ static Canvas* CreateCanvas(const gfx::Size& size, bool is_opaque);
// Saves a copy of the drawing state onto a stack, operating on this copy
// until a balanced call to Restore() is made.
« no previous file with comments | « no previous file | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698