OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/gfx/platform_canvas_linux.h" | 5 #include "base/gfx/platform_canvas_linux.h" |
6 | 6 |
| 7 #include "base/gfx/platform_device_linux.h" |
7 #include "base/gfx/bitmap_platform_device_linux.h" | 8 #include "base/gfx/bitmap_platform_device_linux.h" |
8 #include "base/logging.h" | 9 #include "base/logging.h" |
9 | 10 |
10 namespace gfx { | 11 namespace gfx { |
11 | 12 |
12 PlatformCanvasLinux::PlatformCanvasLinux() : SkCanvas() { | 13 PlatformCanvasLinux::PlatformCanvasLinux() : SkCanvas() { |
13 } | 14 } |
14 | 15 |
15 PlatformCanvasLinux::PlatformCanvasLinux(int width, int height, bool is_opaque) | 16 PlatformCanvasLinux::PlatformCanvasLinux(int width, int height, bool is_opaque) |
16 : SkCanvas() { | 17 : SkCanvas() { |
(...skipping 20 matching lines...) Expand all Loading... |
37 return createPlatformDevice(width, height, is_opaque); | 38 return createPlatformDevice(width, height, is_opaque); |
38 } | 39 } |
39 | 40 |
40 SkDevice* PlatformCanvasLinux::createPlatformDevice(int width, | 41 SkDevice* PlatformCanvasLinux::createPlatformDevice(int width, |
41 int height, | 42 int height, |
42 bool is_opaque) { | 43 bool is_opaque) { |
43 return BitmapPlatformDeviceLinux::Create(width, height, is_opaque); | 44 return BitmapPlatformDeviceLinux::Create(width, height, is_opaque); |
44 } | 45 } |
45 | 46 |
46 } // namespace gfx | 47 } // namespace gfx |
OLD | NEW |