| 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_VECTOR_DEVICE_H_ | 5 #ifndef SKIA_EXT_VECTOR_DEVICE_H_ |
| 6 #define SKIA_EXT_VECTOR_DEVICE_H_ | 6 #define SKIA_EXT_VECTOR_DEVICE_H_ |
| 7 | 7 |
| 8 #include "skia/ext/platform_device_win.h" | 8 #include "skia/ext/platform_device_win.h" |
| 9 #include "SkMatrix.h" | 9 #include "third_party/skia/include/core/SkMatrix.h" |
| 10 #include "SkRegion.h" | 10 #include "third_party/skia/include/core/SkRegion.h" |
| 11 | 11 |
| 12 namespace skia { | 12 namespace skia { |
| 13 | 13 |
| 14 // A device is basically a wrapper around SkBitmap that provides a surface for | 14 // A device is basically a wrapper around SkBitmap that provides a surface for |
| 15 // SkCanvas to draw into. This specific device is not not backed by a surface | 15 // SkCanvas to draw into. This specific device is not not backed by a surface |
| 16 // and is thus unreadable. This is because the backend is completely vectorial. | 16 // and is thus unreadable. This is because the backend is completely vectorial. |
| 17 // This device is a simple wrapper over a Windows device context (HDC) handle. | 17 // This device is a simple wrapper over a Windows device context (HDC) handle. |
| 18 class VectorDevice : public PlatformDeviceWin { | 18 class VectorDevice : public PlatformDeviceWin { |
| 19 public: | 19 public: |
| 20 // Factory function. The DC is kept as the output context. | 20 // Factory function. The DC is kept as the output context. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Copy & assign are not supported. | 112 // Copy & assign are not supported. |
| 113 VectorDevice(const VectorDevice&); | 113 VectorDevice(const VectorDevice&); |
| 114 const VectorDevice& operator=(const VectorDevice&); | 114 const VectorDevice& operator=(const VectorDevice&); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace skia | 117 } // namespace skia |
| 118 | 118 |
| 119 #endif // SKIA_EXT_VECTOR_DEVICE_H_ | 119 #endif // SKIA_EXT_VECTOR_DEVICE_H_ |
| 120 | 120 |
| OLD | NEW |