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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const SkPaint& paint, const SkMatrix* prePathMatrix, 96 const SkPaint& paint, const SkMatrix* prePathMatrix,
97 bool pathIsMutable) SK_OVERRIDE; 97 bool pathIsMutable) SK_OVERRIDE;
98 void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, 98 void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
99 const SkRect* src, const SkRect& dst, 99 const SkRect* src, const SkRect& dst,
100 const SkPaint& paint, 100 const SkPaint& paint,
101 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE; 101 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE;
102 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 102 void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
103 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; 103 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE;
104 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, 104 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y,
105 const SkPaint& paint) SK_OVERRIDE; 105 const SkPaint& paint) SK_OVERRIDE;
106 void drawSprite(const SkDraw&, const SkImage& image, int x, int y,
107 const SkPaint& paint) SK_OVERRIDE;
106 void drawText(const SkDraw&, const void* text, size_t len, 108 void drawText(const SkDraw&, const void* text, size_t len,
107 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; 109 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE;
108 void drawPosText(const SkDraw&, const void* text, size_t len, 110 void drawPosText(const SkDraw&, const void* text, size_t len,
109 const SkScalar pos[], int scalarsPerPos, 111 const SkScalar pos[], int scalarsPerPos,
110 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; 112 const SkPoint& offset, const SkPaint&) SK_OVERRIDE;
111 void drawVertices(const SkDraw&, SkCanvas::VertexMode, 113 void drawVertices(const SkDraw&, SkCanvas::VertexMode,
112 int vertexCount, const SkPoint verts[], 114 int vertexCount, const SkPoint verts[],
113 const SkPoint texs[], const SkColor colors[], 115 const SkPoint texs[], const SkColor colors[],
114 SkXfermode* xmode, const uint16_t indices[], 116 SkXfermode* xmode, const uint16_t indices[],
115 int indexCount, const SkPaint& paint) SK_OVERRIDE; 117 int indexCount, const SkPaint& paint) SK_OVERRIDE;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 311
310 typedef SkBaseDevice INHERITED; 312 typedef SkBaseDevice INHERITED;
311 313
312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 314 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
313 // an SkPDFDevice 315 // an SkPDFDevice
314 //friend class SkDocument_PDF; 316 //friend class SkDocument_PDF;
315 //friend class SkPDFImageShader; 317 //friend class SkPDFImageShader;
316 }; 318 };
317 319
318 #endif 320 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698