| 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 VectorDevice_h | 5 #ifndef SKIA_EXT_VECTOR_DEVICE_H_ |
| 6 #define VectorDevice_h | 6 #define SKIA_EXT_VECTOR_DEVICE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "skia/ext/platform_device_win.h" | 8 #include "skia/ext/platform_device_win.h" |
| 10 #include "SkMatrix.h" | 9 #include "SkMatrix.h" |
| 11 #include "SkRegion.h" | 10 #include "SkRegion.h" |
| 12 | 11 |
| 13 namespace skia { | 12 namespace skia { |
| 14 | 13 |
| 15 // 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 |
| 16 // 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 |
| 17 // 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. |
| 18 // 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. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 102 |
| 104 // The current clipping | 103 // The current clipping |
| 105 SkRegion clip_region_; | 104 SkRegion clip_region_; |
| 106 | 105 |
| 107 // Previously selected brush before the current drawing. | 106 // Previously selected brush before the current drawing. |
| 108 HGDIOBJ previous_brush_; | 107 HGDIOBJ previous_brush_; |
| 109 | 108 |
| 110 // Previously selected pen before the current drawing. | 109 // Previously selected pen before the current drawing. |
| 111 HGDIOBJ previous_pen_; | 110 HGDIOBJ previous_pen_; |
| 112 | 111 |
| 113 DISALLOW_COPY_AND_ASSIGN(VectorDevice); | 112 // Copy & assign are not supported. |
| 113 VectorDevice(const VectorDevice&); |
| 114 const VectorDevice& operator=(const VectorDevice&); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace skia | 117 } // namespace skia |
| 117 | 118 |
| 118 #endif // VectorDevice_h | 119 #endif // SKIA_EXT_VECTOR_DEVICE_H_ |
| 119 | 120 |
| OLD | NEW |