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& draw, SkSpecialImage*, | 135 void drawSpecial(const SkDraw& draw, SkSpecialImage*, |
135 int left, int top, const SkPaint& paint); | 136 int left, int top, const SkPaint& paint); |
136 | 137 |
137 void flush() override; | 138 void flush() override; |
138 | 139 |
139 void onAttachToCanvas(SkCanvas* canvas) override; | 140 void onAttachToCanvas(SkCanvas* canvas) override; |
140 void onDetachFromCanvas() override; | 141 void onDetachFromCanvas() override; |
141 | 142 |
142 const SkBitmap& onAccessBitmap() override; | 143 const SkBitmap& onAccessBitmap() override; |
143 bool onAccessPixels(SkPixmap*) override; | 144 bool onAccessPixels(SkPixmap*) override; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 270 |
270 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 271 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
271 const SkPaint&) override; | 272 const SkPaint&) override; |
272 | 273 |
273 friend class GrAtlasTextContext; | 274 friend class GrAtlasTextContext; |
274 friend class SkSurface_Gpu; // for access to surfaceProps | 275 friend class SkSurface_Gpu; // for access to surfaceProps |
275 typedef SkBaseDevice INHERITED; | 276 typedef SkBaseDevice INHERITED; |
276 }; | 277 }; |
277 | 278 |
278 #endif | 279 #endif |
OLD | NEW |