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

Side by Side Diff: skia/ext/platform_canvas_win.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <windows.h> 5 #include <windows.h>
6 #include <psapi.h> 6 #include <psapi.h>
7 7
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "skia/ext/bitmap_platform_device_win.h" 9 #include "skia/ext/bitmap_platform_device_win.h"
10 #include "skia/ext/platform_canvas.h" 10 #include "skia/ext/platform_canvas.h"
11 11
12 namespace skia { 12 namespace skia {
13 13 #if 0
14 PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) { 14 PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) {
15 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", 15 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas",
16 "width", width, "height", height); 16 "width", width, "height", height);
17 initialize(width, height, is_opaque, NULL); 17 initialize(width, height, is_opaque, NULL);
18 } 18 }
19 19
20 PlatformCanvas::PlatformCanvas(int width, 20 PlatformCanvas::PlatformCanvas(int width,
21 int height, 21 int height,
22 bool is_opaque, 22 bool is_opaque,
23 HANDLE shared_section) { 23 HANDLE shared_section) {
24 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas", 24 TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas",
25 "width", width, "height", height); 25 "width", width, "height", height);
26 initialize(width, height, is_opaque, shared_section); 26 initialize(width, height, is_opaque, shared_section);
27 } 27 }
28 28
29 PlatformCanvas::~PlatformCanvas() { 29 PlatformCanvas::~PlatformCanvas() {
30 } 30 }
31 31
32 bool PlatformCanvas::initialize(int width, 32 bool PlatformCanvas::initialize(int width,
33 int height, 33 int height,
34 bool is_opaque, 34 bool is_opaque,
35 HANDLE shared_section) { 35 HANDLE shared_section) {
36 return initializeWithDevice(BitmapPlatformDevice::Create( 36 return initializeWithDevice(BitmapPlatformDevice::Create(
37 width, height, is_opaque, shared_section)); 37 width, height, is_opaque, shared_section));
38 } 38 }
39 39 #endif
40 } // namespace skia 40 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698