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