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

Side by Side Diff: src/svg/SkSVGDevice.h

Issue 1228083004: add src-rect-constraint to drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 SkSVGDevice_DEFINED 8 #ifndef SkSVGDevice_DEFINED
9 #define SkSVGDevice_DEFINED 9 #define SkSVGDevice_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 const SkMatrix* prePathMatrix = NULL, 30 const SkMatrix* prePathMatrix = NULL,
31 bool pathIsMutable = false) override; 31 bool pathIsMutable = false) override;
32 32
33 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 33 void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
34 const SkMatrix& matrix, const SkPaint& paint) override; 34 const SkMatrix& matrix, const SkPaint& paint) override;
35 void drawSprite(const SkDraw&, const SkBitmap& bitmap, 35 void drawSprite(const SkDraw&, const SkBitmap& bitmap,
36 int x, int y, const SkPaint& paint) override; 36 int x, int y, const SkPaint& paint) override;
37 void drawBitmapRect(const SkDraw&, const SkBitmap&, 37 void drawBitmapRect(const SkDraw&, const SkBitmap&,
38 const SkRect* srcOrNull, const SkRect& dst, 38 const SkRect* srcOrNull, const SkRect& dst,
39 const SkPaint& paint, 39 const SkPaint& paint,
40 SkCanvas::DrawBitmapRectFlags flags) override; 40 SK_VIRTUAL_CONSTRAINT_TYPE) override;
41 41
42 void drawText(const SkDraw&, const void* text, size_t len, 42 void drawText(const SkDraw&, const void* text, size_t len,
43 SkScalar x, SkScalar y, const SkPaint& paint) override; 43 SkScalar x, SkScalar y, const SkPaint& paint) override;
44 void drawPosText(const SkDraw&, const void* text, size_t len, 44 void drawPosText(const SkDraw&, const void* text, size_t len,
45 const SkScalar pos[], int scalarsPerPos, 45 const SkScalar pos[], int scalarsPerPos,
46 const SkPoint& offset, const SkPaint& paint) override; 46 const SkPoint& offset, const SkPaint& paint) override;
47 void drawTextOnPath(const SkDraw&, const void* text, size_t len, 47 void drawTextOnPath(const SkDraw&, const void* text, size_t len,
48 const SkPath& path, const SkMatrix* matrix, 48 const SkPath& path, const SkMatrix* matrix,
49 const SkPaint& paint) override; 49 const SkPaint& paint) override;
50 void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount, 50 void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount,
(...skipping 17 matching lines...) Expand all
68 68
69 SkXMLWriter* fWriter; 69 SkXMLWriter* fWriter;
70 SkAutoTDelete<AutoElement> fRootElement; 70 SkAutoTDelete<AutoElement> fRootElement;
71 SkAutoTDelete<ResourceBucket> fResourceBucket; 71 SkAutoTDelete<ResourceBucket> fResourceBucket;
72 SkBitmap fLegacyBitmap; 72 SkBitmap fLegacyBitmap;
73 73
74 typedef SkBaseDevice INHERITED; 74 typedef SkBaseDevice INHERITED;
75 }; 75 };
76 76
77 #endif // SkSVGDevice_DEFINED 77 #endif // SkSVGDevice_DEFINED
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698