OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
76 const SkMatrix& matrix, const SkPaint& paint) overri
de; | 76 const SkMatrix& matrix, const SkPaint& paint) overri
de; |
77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
78 int x, int y, const SkPaint& paint) override; | 78 int x, int y, const SkPaint& paint) override; |
79 | 79 |
80 /** | 80 /** |
81 * The default impl. will create a bitmap-shader from the bitmap, | 81 * The default impl. will create a bitmap-shader from the bitmap, |
82 * and call drawRect with it. | 82 * and call drawRect with it. |
83 */ | 83 */ |
84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, const SkR
ect&, | 84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, const SkR
ect&, |
85 const SkPaint&, SK_VIRTUAL_CONSTRAINT_TYPE) override; | 85 const SkPaint&, SkCanvas::SrcRectConstraint) override; |
86 | 86 |
87 /** | 87 /** |
88 * Does not handle text decoration. | 88 * Does not handle text decoration. |
89 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 89 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
90 */ | 90 */ |
91 virtual void drawText(const SkDraw&, const void* text, size_t len, | 91 virtual void drawText(const SkDraw&, const void* text, size_t len, |
92 SkScalar x, SkScalar y, const SkPaint& paint) override
; | 92 SkScalar x, SkScalar y, const SkPaint& paint) override
; |
93 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 93 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
94 const SkScalar pos[], int scalarsPerPos, | 94 const SkScalar pos[], int scalarsPerPos, |
95 const SkPoint& offset, const SkPaint& paint) overri
de; | 95 const SkPoint& offset, const SkPaint& paint) overri
de; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 SkImageFilter::Cache* getImageFilterCache() override; | 144 SkImageFilter::Cache* getImageFilterCache() override; |
145 | 145 |
146 SkBitmap fBitmap; | 146 SkBitmap fBitmap; |
147 | 147 |
148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). | 148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). |
149 | 149 |
150 typedef SkBaseDevice INHERITED; | 150 typedef SkBaseDevice INHERITED; |
151 }; | 151 }; |
152 | 152 |
153 #endif // SkBitmapDevice_DEFINED | 153 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |