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

Side by Side Diff: include/pdf/SkPDFDevice.h

Issue 424663006: SkCanvas interface for drawing a patch. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFDevice_DEFINED 10 #ifndef SkPDFDevice_DEFINED
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const SkScalar pos[], SkScalar constY, 101 const SkScalar pos[], SkScalar constY,
102 int scalarsPerPos, const SkPaint&) SK_OVERRIDE; 102 int scalarsPerPos, const SkPaint&) SK_OVERRIDE;
103 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 103 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
104 const SkPath& path, const SkMatrix* matrix, 104 const SkPath& path, const SkMatrix* matrix,
105 const SkPaint& paint) SK_OVERRIDE; 105 const SkPaint& paint) SK_OVERRIDE;
106 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, 106 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode,
107 int vertexCount, const SkPoint verts[], 107 int vertexCount, const SkPoint verts[],
108 const SkPoint texs[], const SkColor colors[], 108 const SkPoint texs[], const SkColor colors[],
109 SkXfermode* xmode, const uint16_t indices[], 109 SkXfermode* xmode, const uint16_t indices[],
110 int indexCount, const SkPaint& paint) SK_OVERRIDE; 110 int indexCount, const SkPaint& paint) SK_OVERRIDE;
111 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p aint) SK_OVERRIDE;
111 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 112 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
112 const SkPaint&) SK_OVERRIDE; 113 const SkPaint&) SK_OVERRIDE;
113 114
114 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; 115 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE;
115 virtual void onDetachFromCanvas() SK_OVERRIDE; 116 virtual void onDetachFromCanvas() SK_OVERRIDE;
116 virtual SkImageInfo imageInfo() const SK_OVERRIDE; 117 virtual SkImageInfo imageInfo() const SK_OVERRIDE;
117 118
118 enum DrawingArea { 119 enum DrawingArea {
119 kContent_DrawingArea, // Drawing area for the page content. 120 kContent_DrawingArea, // Drawing area for the page content.
120 kMargin_DrawingArea, // Drawing area for the margin content. 121 kMargin_DrawingArea, // Drawing area for the margin content.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 337
337 typedef SkBaseDevice INHERITED; 338 typedef SkBaseDevice INHERITED;
338 339
339 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 340 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
340 // an SkPDFDevice 341 // an SkPDFDevice
341 //friend class SkDocument_PDF; 342 //friend class SkDocument_PDF;
342 //friend class SkPDFImageShader; 343 //friend class SkPDFImageShader;
343 }; 344 };
344 345
345 #endif 346 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698