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 #ifndef PlatformCanvasWin_h | 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
6 #define PlatformCanvasWin_h | 6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "PlatformDeviceWin.h" | |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "skia/ext/platform_device_win.h" |
12 | 12 |
13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 | 16 |
17 // This class is a specialization of the regular SkCanvas that is designed to | 17 // This class is a specialization of the regular SkCanvas that is designed to |
18 // work with a gfx::PlatformDevice to manage platform-specific drawing. It | 18 // work with a gfx::PlatformDevice to manage platform-specific drawing. It |
19 // allows using both Skia operations and platform-specific operations. | 19 // allows using both Skia operations and platform-specific operations. |
20 class PlatformCanvasWin : public SkCanvas { | 20 class PlatformCanvasWin : public SkCanvas { |
21 public: | 21 public: |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // Disallow copy and assign. | 192 // Disallow copy and assign. |
193 CanvasPaintT(const CanvasPaintT&); | 193 CanvasPaintT(const CanvasPaintT&); |
194 CanvasPaintT& operator=(const CanvasPaintT&); | 194 CanvasPaintT& operator=(const CanvasPaintT&); |
195 }; | 195 }; |
196 | 196 |
197 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; | 197 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; |
198 | 198 |
199 } // namespace gfx | 199 } // namespace gfx |
200 | 200 |
201 #endif // PlatformCanvasWin_h | 201 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
202 | 202 |
OLD | NEW |