| 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 BASE_GFX_VECTOR_CANVAS_H_ | 5 #ifndef BASE_GFX_VECTOR_CANVAS_H_ |
| 6 #define BASE_GFX_VECTOR_CANVAS_H_ | 6 #define BASE_GFX_VECTOR_CANVAS_H_ |
| 7 | 7 |
| 8 #include "base/gfx/platform_canvas_win.h" | 8 #include "skia/ext/platform_canvas_win.h" |
| 9 #include "base/gfx/vector_device.h" | 9 #include "skia/ext/vector_device.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 | 12 |
| 13 // This class is a specialization of the regular PlatformCanvas. It is designed | 13 // This class is a specialization of the regular PlatformCanvas. It is designed |
| 14 // to work with a VectorDevice to manage platform-specific drawing. It allows | 14 // to work with a VectorDevice to manage platform-specific drawing. It allows |
| 15 // using both Skia operations and platform-specific operations. It *doesn't* | 15 // using both Skia operations and platform-specific operations. It *doesn't* |
| 16 // support reading back from the bitmap backstore since it is not used. | 16 // support reading back from the bitmap backstore since it is not used. |
| 17 class VectorCanvas : public PlatformCanvasWin { | 17 class VectorCanvas : public PlatformCanvasWin { |
| 18 public: | 18 public: |
| 19 VectorCanvas(); | 19 VectorCanvas(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 // Returns true if the top device is vector based and not bitmap based. | 37 // Returns true if the top device is vector based and not bitmap based. |
| 38 bool IsTopDeviceVectorial() const; | 38 bool IsTopDeviceVectorial() const; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(VectorCanvas); | 40 DISALLOW_COPY_AND_ASSIGN(VectorCanvas); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace gfx | 43 } // namespace gfx |
| 44 | 44 |
| 45 #endif // BASE_GFX_VECTOR_CANVAS_H_ | 45 #endif // BASE_GFX_VECTOR_CANVAS_H_ |
| 46 | 46 |
| OLD | NEW |