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

Unified Diff: ui/gfx/canvas.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 years, 9 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/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.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index 619f93f6f03fcef6fef6830bed41dba5b040a656..ee34da968be15c94371da17110848289b52ecc03 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -6,20 +6,20 @@
namespace gfx {
-CanvasSkia* Canvas::AsCanvasSkia() {
- return NULL;
+Canvas::Canvas()
+ : CanvasSkia() {
}
-const CanvasSkia* Canvas::AsCanvasSkia() const {
- return NULL;
+Canvas::Canvas(SkCanvas* canvas)
+ : CanvasSkia(canvas) {
}
-SkCanvas* Canvas::GetSkCanvas() {
- return NULL;
+Canvas::Canvas(const gfx::Size& size, bool is_opaque)
+ : CanvasSkia(size, is_opaque) {
}
-const SkCanvas* Canvas::GetSkCanvas() const {
- return NULL;
+Canvas::Canvas(const SkBitmap& bitmap, bool is_opaque)
+ : CanvasSkia(bitmap, is_opaque) {
}
} // namespace gfx
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_paint_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698