Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: include/device/xps/SkXPSDevice.h

Issue 963953002: XPS, DM: add SkDocument::CreateXPS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix conics Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
13 #ifdef SK_SUPPORT_XPS
14
12 #include <ObjBase.h> 15 #include <ObjBase.h>
13 #include <XpsObjectModel.h> 16 #include <XpsObjectModel.h>
14 17
15 #include "SkAutoCoInitialize.h" 18 #include "SkAutoCoInitialize.h"
16 #include "SkBitmapDevice.h" 19 #include "SkBitmapDevice.h"
17 #include "SkBitSet.h" 20 #include "SkBitSet.h"
18 #include "SkCanvas.h" 21 #include "SkCanvas.h"
19 #include "SkColor.h" 22 #include "SkColor.h"
20 #include "SkPaint.h" 23 #include "SkPaint.h"
21 #include "SkPath.h" 24 #include "SkPath.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const void* text, size_t len, 115 const void* text, size_t len,
113 SkScalar x, SkScalar y, 116 SkScalar x, SkScalar y,
114 const SkPaint& paint) SK_OVERRIDE; 117 const SkPaint& paint) SK_OVERRIDE;
115 118
116 virtual void drawPosText( 119 virtual void drawPosText(
117 const SkDraw&, 120 const SkDraw&,
118 const void* text, size_t len, 121 const void* text, size_t len,
119 const SkScalar pos[], int scalarsPerPos, 122 const SkScalar pos[], int scalarsPerPos,
120 const SkPoint& offset, const SkPaint& paint) SK_OVERRIDE; 123 const SkPoint& offset, const SkPaint& paint) SK_OVERRIDE;
121 124
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( 125 virtual void drawVertices(
130 const SkDraw&, 126 const SkDraw&,
131 SkCanvas::VertexMode, 127 SkCanvas::VertexMode,
132 int vertexCount, const SkPoint verts[], 128 int vertexCount, const SkPoint verts[],
133 const SkPoint texs[], const SkColor colors[], 129 const SkPoint texs[], const SkColor colors[],
134 SkXfermode* xmode, 130 SkXfermode* xmode,
135 const uint16_t indices[], int indexCount, 131 const uint16_t indices[], int indexCount,
136 const SkPaint& paint) SK_OVERRIDE; 132 const SkPaint& paint) SK_OVERRIDE;
137 133
138 virtual void drawDevice( 134 virtual void drawDevice(
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 315
320 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; 316 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE;
321 317
322 // Disable the default copy and assign implementation. 318 // Disable the default copy and assign implementation.
323 SkXPSDevice(const SkXPSDevice&); 319 SkXPSDevice(const SkXPSDevice&);
324 void operator=(const SkXPSDevice&); 320 void operator=(const SkXPSDevice&);
325 321
326 typedef SkBitmapDevice INHERITED; 322 typedef SkBitmapDevice INHERITED;
327 }; 323 };
328 324
329 #endif 325 #endif // SK_SUPPORT_XPS
326 #endif // SkXPSDevice_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698