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

Side by Side Diff: skia/ext/platform_canvas_mac.cc

Issue 11138024: Simplify platform_canvas.h by recognizing that PlatformCanvas does not actually extend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 "skia/ext/platform_canvas.h" 5 #include "skia/ext/platform_canvas.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "skia/ext/bitmap_platform_device.h" 8 #include "skia/ext/bitmap_platform_device.h"
9 #include "third_party/skia/include/core/SkTypes.h" 9 #include "third_party/skia/include/core/SkTypes.h"
10 10
11 namespace skia { 11 namespace skia {
12 12 #if 0
13 PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) { 13 PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) {
14 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", 14 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas",
15 "width", width, "height", height); 15 "width", width, "height", height);
16 initialize(width, height, is_opaque); 16 initialize(width, height, is_opaque);
17 } 17 }
18 18
19 PlatformCanvas::PlatformCanvas(int width, 19 PlatformCanvas::PlatformCanvas(int width,
20 int height, 20 int height,
21 bool is_opaque, 21 bool is_opaque,
22 CGContextRef context) { 22 CGContextRef context) {
(...skipping 22 matching lines...) Expand all
45 data, width, height, is_opaque)); 45 data, width, height, is_opaque));
46 } 46 }
47 47
48 bool PlatformCanvas::initialize(CGContextRef context, 48 bool PlatformCanvas::initialize(CGContextRef context,
49 int width, 49 int width,
50 int height, 50 int height,
51 bool is_opaque) { 51 bool is_opaque) {
52 return initializeWithDevice(BitmapPlatformDevice::Create( 52 return initializeWithDevice(BitmapPlatformDevice::Create(
53 context, width, height, is_opaque)); 53 context, width, height, is_opaque));
54 } 54 }
55 55 #endif
56 } // namespace skia 56 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698