| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkXPSDevice_DEFINED | 8 #ifndef SkXPSDevice_DEFINED |
| 9 #define SkXPSDevice_DEFINED | 9 #define SkXPSDevice_DEFINED |
| 10 | 10 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 |
| 12 #include <ObjBase.h> | 13 #include <ObjBase.h> |
| 13 #include <XpsObjectModel.h> | 14 #include <XpsObjectModel.h> |
| 14 | 15 |
| 15 #include "SkAutoCoInitialize.h" | 16 #include "SkAutoCoInitialize.h" |
| 16 #include "SkBitmapDevice.h" | 17 #include "SkBitmapDevice.h" |
| 17 #include "SkBitSet.h" | 18 #include "SkBitSet.h" |
| 18 #include "SkCanvas.h" | 19 #include "SkCanvas.h" |
| 19 #include "SkColor.h" | 20 #include "SkColor.h" |
| 20 #include "SkPaint.h" | 21 #include "SkPaint.h" |
| 21 #include "SkPath.h" | 22 #include "SkPath.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const void* text, size_t len, | 113 const void* text, size_t len, |
| 113 SkScalar x, SkScalar y, | 114 SkScalar x, SkScalar y, |
| 114 const SkPaint& paint) SK_OVERRIDE; | 115 const SkPaint& paint) SK_OVERRIDE; |
| 115 | 116 |
| 116 virtual void drawPosText( | 117 virtual void drawPosText( |
| 117 const SkDraw&, | 118 const SkDraw&, |
| 118 const void* text, size_t len, | 119 const void* text, size_t len, |
| 119 const SkScalar pos[], int scalarsPerPos, | 120 const SkScalar pos[], int scalarsPerPos, |
| 120 const SkPoint& offset, const SkPaint& paint) SK_OVERRIDE; | 121 const SkPoint& offset, const SkPaint& paint) SK_OVERRIDE; |
| 121 | 122 |
| 122 virtual void drawTextOnPath( | |
| 123 const SkDraw&, | |
| 124 const void* text, size_t len, | |
| 125 const SkPath& path, | |
| 126 const SkMatrix* matrix, | |
| 127 const SkPaint& paint) SK_OVERRIDE; | |
| 128 | |
| 129 virtual void drawVertices( | 123 virtual void drawVertices( |
| 130 const SkDraw&, | 124 const SkDraw&, |
| 131 SkCanvas::VertexMode, | 125 SkCanvas::VertexMode, |
| 132 int vertexCount, const SkPoint verts[], | 126 int vertexCount, const SkPoint verts[], |
| 133 const SkPoint texs[], const SkColor colors[], | 127 const SkPoint texs[], const SkColor colors[], |
| 134 SkXfermode* xmode, | 128 SkXfermode* xmode, |
| 135 const uint16_t indices[], int indexCount, | 129 const uint16_t indices[], int indexCount, |
| 136 const SkPaint& paint) SK_OVERRIDE; | 130 const SkPaint& paint) SK_OVERRIDE; |
| 137 | 131 |
| 138 virtual void drawDevice( | 132 virtual void drawDevice( |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | 314 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; |
| 321 | 315 |
| 322 // Disable the default copy and assign implementation. | 316 // Disable the default copy and assign implementation. |
| 323 SkXPSDevice(const SkXPSDevice&); | 317 SkXPSDevice(const SkXPSDevice&); |
| 324 void operator=(const SkXPSDevice&); | 318 void operator=(const SkXPSDevice&); |
| 325 | 319 |
| 326 typedef SkBitmapDevice INHERITED; | 320 typedef SkBitmapDevice INHERITED; |
| 327 }; | 321 }; |
| 328 | 322 |
| 329 #endif | 323 #endif |
| OLD | NEW |