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

Side by Side Diff: src/svg/SkSVGDevice.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 * 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 16 matching lines...) Expand all
27 virtual void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& pain t) SK_OVERRIDE; 27 virtual void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& pain t) SK_OVERRIDE;
28 virtual void drawPath(const SkDraw&, const SkPath& path, 28 virtual void drawPath(const SkDraw&, const SkPath& path,
29 const SkPaint& paint, 29 const SkPaint& paint,
30 const SkMatrix* prePathMatrix = NULL, 30 const SkMatrix* prePathMatrix = NULL,
31 bool pathIsMutable = false) SK_OVERRIDE; 31 bool pathIsMutable = false) SK_OVERRIDE;
32 32
33 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 33 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
34 const SkMatrix& matrix, const SkPaint& paint) SK_OVE RRIDE; 34 const SkMatrix& matrix, const SkPaint& paint) SK_OVE RRIDE;
35 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 35 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
36 int x, int y, const SkPaint& paint) SK_OVERRIDE; 36 int x, int y, const SkPaint& paint) SK_OVERRIDE;
37 virtual void drawSprite(const SkDraw&, const SkImage& image,
38 int x, int y, const SkPaint& paint) SK_OVERRIDE;
37 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, 39 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
38 const SkRect* srcOrNull, const SkRect& dst, 40 const SkRect* srcOrNull, const SkRect& dst,
39 const SkPaint& paint, 41 const SkPaint& paint,
40 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ; 42 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ;
41 43
42 virtual void drawText(const SkDraw&, const void* text, size_t len, 44 virtual void drawText(const SkDraw&, const void* text, size_t len,
43 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE; 45 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE;
44 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 46 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
45 const SkScalar pos[], int scalarsPerPos, 47 const SkScalar pos[], int scalarsPerPos,
46 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE; 48 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE;
(...skipping 17 matching lines...) Expand all
64 class AutoElement; 66 class AutoElement;
65 class ResourceBucket; 67 class ResourceBucket;
66 68
67 SkXMLWriter* fWriter; 69 SkXMLWriter* fWriter;
68 SkAutoTDelete<AutoElement> fRootElement; 70 SkAutoTDelete<AutoElement> fRootElement;
69 SkAutoTDelete<ResourceBucket> fResourceBucket; 71 SkAutoTDelete<ResourceBucket> fResourceBucket;
70 SkBitmap fLegacyBitmap; 72 SkBitmap fLegacyBitmap;
71 }; 73 };
72 74
73 #endif // SkSVGDevice_DEFINED 75 #endif // SkSVGDevice_DEFINED
OLDNEW
« include/core/SkDevice.h ('K') | « src/pdf/SkPDFDevice.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698