| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLATFORM_DEVICE_CAIRO_LINUX_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_CAIRO_LINUX_H_ |
| 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_CAIRO_LINUX_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_CAIRO_LINUX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 int vertexCount, | 75 int vertexCount, |
| 76 const SkPoint verts[], const SkPoint texs[], | 76 const SkPoint verts[], const SkPoint texs[], |
| 77 const SkColor colors[], SkXfermode* xmode, | 77 const SkColor colors[], SkXfermode* xmode, |
| 78 const uint16_t indices[], int indexCount, | 78 const uint16_t indices[], int indexCount, |
| 79 const SkPaint& paint) OVERRIDE; | 79 const SkPaint& paint) OVERRIDE; |
| 80 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, | 80 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, |
| 81 const SkPaint&) OVERRIDE; | 81 const SkPaint&) OVERRIDE; |
| 82 | 82 |
| 83 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, | 83 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
| 84 const SkClipStack&); | 84 const SkClipStack&); |
| 85 virtual PlatformSurface beginPlatformPaint(); | 85 virtual PlatformSurface BeginPlatformPaint(); |
| 86 virtual bool IsVectorial(); | 86 virtual bool IsVectorial(); |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 explicit VectorPlatformDeviceCairo(PlatformSurface context, | 89 explicit VectorPlatformDeviceCairo(PlatformSurface context, |
| 90 const SkBitmap& bitmap); | 90 const SkBitmap& bitmap); |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 // Apply paint's color in the context. | 93 // Apply paint's color in the context. |
| 94 void ApplyPaintColor(const SkPaint& paint); | 94 void ApplyPaintColor(const SkPaint& paint); |
| 95 | 95 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // Device context. | 130 // Device context. |
| 131 PlatformSurface context_; | 131 PlatformSurface context_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceCairo); | 133 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceCairo); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace skia | 136 } // namespace skia |
| 137 | 137 |
| 138 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_CAIRO_LINUX_H_ | 138 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_CAIRO_LINUX_H_ |
| OLD | NEW |