OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 SkGpuDevice_DEFINED | 8 #ifndef SkGpuDevice_DEFINED |
9 #define SkGpuDevice_DEFINED | 9 #define SkGpuDevice_DEFINED |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; | 125 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; |
126 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, | 126 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, |
127 const SkPaint&, SkCanvas::SrcRectConstraint) override; | 127 const SkPaint&, SkCanvas::SrcRectConstraint) override; |
128 | 128 |
129 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect&
center, | 129 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect&
center, |
130 const SkRect& dst, const SkPaint& paint) override; | 130 const SkRect& dst, const SkPaint& paint) override; |
131 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec
t& center, | 131 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec
t& center, |
132 const SkRect& dst, const SkPaint& paint) override; | 132 const SkRect& dst, const SkPaint& paint) override; |
133 | 133 |
134 sk_sp<SkSpecialImage> asSpecial(); | 134 void drawSpecial(const SkDraw&, SkSpecialImage*, |
135 void drawSpecial(const SkDraw& draw, SkSpecialImage*, | 135 int left, int top, const SkPaint& paint) override; |
136 int left, int top, const SkPaint& paint); | 136 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; |
| 137 sk_sp<SkSpecialImage> makeSpecial(SkImage*) override; |
| 138 sk_sp<SkSpecialImage> snapSpecial() override; |
137 | 139 |
138 void flush() override; | 140 void flush() override; |
139 | 141 |
140 void onAttachToCanvas(SkCanvas* canvas) override; | 142 void onAttachToCanvas(SkCanvas* canvas) override; |
141 void onDetachFromCanvas() override; | 143 void onDetachFromCanvas() override; |
142 | 144 |
143 const SkBitmap& onAccessBitmap() override; | 145 const SkBitmap& onAccessBitmap() override; |
144 bool onAccessPixels(SkPixmap*) override; | 146 bool onAccessPixels(SkPixmap*) override; |
145 | 147 |
146 // for debugging purposes only | 148 // for debugging purposes only |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 272 |
271 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 273 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
272 const SkPaint&) override; | 274 const SkPaint&) override; |
273 | 275 |
274 friend class GrAtlasTextContext; | 276 friend class GrAtlasTextContext; |
275 friend class SkSurface_Gpu; // for access to surfaceProps | 277 friend class SkSurface_Gpu; // for access to surfaceProps |
276 typedef SkBaseDevice INHERITED; | 278 typedef SkBaseDevice INHERITED; |
277 }; | 279 }; |
278 | 280 |
279 #endif | 281 #endif |
OLD | NEW |