| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. All rights reserved. | 1 // Copyright (c) 2008, Google Inc. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 #ifndef PlatformContextSkia_h | 29 #ifndef PlatformContextSkia_h |
| 30 #define PlatformContextSkia_h | 30 #define PlatformContextSkia_h |
| 31 | 31 |
| 32 #include "base/gfx/platform_canvas.h" | |
| 33 | 32 |
| 34 #include "SkDashPathEffect.h" | 33 #include "SkDashPathEffect.h" |
| 35 #include "SkDrawLooper.h" | 34 #include "SkDrawLooper.h" |
| 36 #include "SkDeque.h" | 35 #include "SkDeque.h" |
| 36 #include "skia/ext/platform_canvas.h" |
| 37 #include "SkPaint.h" | 37 #include "SkPaint.h" |
| 38 #include "SkPath.h" | 38 #include "SkPath.h" |
| 39 | 39 |
| 40 #include "GraphicsContext.h" | 40 #include "GraphicsContext.h" |
| 41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
| 42 | 42 |
| 43 typedef struct _GdkDrawable GdkSkia; | 43 typedef struct _GdkDrawable GdkSkia; |
| 44 | 44 |
| 45 // This class holds the platform-specific state for GraphicsContext. We put | 45 // This class holds the platform-specific state for GraphicsContext. We put |
| 46 // most of our Skia wrappers on this class. In theory, a lot of this stuff could | 46 // most of our Skia wrappers on this class. In theory, a lot of this stuff could |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 PlatformContextSkia(const PlatformContextSkia&); | 164 PlatformContextSkia(const PlatformContextSkia&); |
| 165 void operator=(const PlatformContextSkia&); | 165 void operator=(const PlatformContextSkia&); |
| 166 | 166 |
| 167 #if defined(__linux__) | 167 #if defined(__linux__) |
| 168 // A pointer to a GDK Drawable wrapping of this Skia canvas | 168 // A pointer to a GDK Drawable wrapping of this Skia canvas |
| 169 GdkSkia* m_gdkskia; | 169 GdkSkia* m_gdkskia; |
| 170 #endif | 170 #endif |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 #endif // PlatformContextSkia_h | 173 #endif // PlatformContextSkia_h |
| OLD | NEW |