| 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 SKIA_EXT_PLATFORM_CANVAS_WIN_H_ | 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
| 6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_ | 6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "skia/ext/platform_device_win.h" | 10 #include "skia/ext/platform_device_win.h" |
| 11 | 11 |
| 12 #include "SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
| 13 | 13 |
| 14 namespace skia { | 14 namespace skia { |
| 15 | 15 |
| 16 // This class is a specialization of the regular SkCanvas that is designed to | 16 // This class is a specialization of the regular SkCanvas that is designed to |
| 17 // work with a PlatformDevice to manage platform-specific drawing. It allows | 17 // work with a PlatformDevice to manage platform-specific drawing. It allows |
| 18 // using both Skia operations and platform-specific operations. | 18 // using both Skia operations and platform-specific operations. |
| 19 class PlatformCanvasWin : public SkCanvas { | 19 class PlatformCanvasWin : public SkCanvas { |
| 20 public: | 20 public: |
| 21 // Set is_opaque if you are going to erase the bitmap and not use | 21 // Set is_opaque if you are going to erase the bitmap and not use |
| 22 // transparency: this will enable some optimizations. The shared_section | 22 // transparency: this will enable some optimizations. The shared_section |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Disallow copy and assign. | 194 // Disallow copy and assign. |
| 195 CanvasPaintT(const CanvasPaintT&); | 195 CanvasPaintT(const CanvasPaintT&); |
| 196 CanvasPaintT& operator=(const CanvasPaintT&); | 196 CanvasPaintT& operator=(const CanvasPaintT&); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; | 199 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; |
| 200 | 200 |
| 201 } // namespace skia | 201 } // namespace skia |
| 202 | 202 |
| 203 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_ | 203 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_ |
| OLD | NEW |