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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/canvas.h" 5 #include "ui/gfx/canvas.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 CanvasSkia* Canvas::AsCanvasSkia() { 9 Canvas::Canvas(SkCanvas* canvas)
10 return NULL; 10 : CanvasSkia(canvas) {
11 } 11 }
12 12
13 const CanvasSkia* Canvas::AsCanvasSkia() const { 13 Canvas::Canvas(const gfx::Size& size, bool is_opaque)
14 return NULL; 14 : CanvasSkia(size, is_opaque) {
15 } 15 }
16 16
17 SkCanvas* Canvas::GetSkCanvas() { 17 Canvas::Canvas(const SkBitmap& bitmap, bool is_opaque)
18 return NULL; 18 : CanvasSkia(bitmap, is_opaque) {
19 }
20
21 const SkCanvas* Canvas::GetSkCanvas() const {
22 return NULL;
23 } 19 }
24 20
25 } // namespace gfx 21 } // namespace gfx
OLDNEW
« ui/gfx/canvas.h ('K') | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698