OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 void onDrawPaint(const SkPaint&) override; | 178 void onDrawPaint(const SkPaint&) override; |
179 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; | 179 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; |
180 void onDrawRect(const SkRect&, const SkPaint&) override; | 180 void onDrawRect(const SkRect&, const SkPaint&) override; |
181 void onDrawOval(const SkRect&, const SkPaint&) override; | 181 void onDrawOval(const SkRect&, const SkPaint&) override; |
182 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 182 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
183 void onDrawPath(const SkPath&, const SkPaint&) override; | 183 void onDrawPath(const SkPath&, const SkPaint&) override; |
184 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; | 184 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) override; |
185 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 185 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
186 DrawBitmapRectFlags flags) override; | 186 DrawBitmapRectFlags flags) override; |
| 187 #if 0 |
| 188 // rely on conversion to bitmap (for now) |
187 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 189 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
188 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 190 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
189 const SkPaint*) override; | 191 const SkPaint*) override; |
| 192 #endif |
190 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
191 const SkPaint*) override; | 194 const SkPaint*) override; |
192 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; | 195 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
193 void onDrawVertices(VertexMode vmode, int vertexCount, | 196 void onDrawVertices(VertexMode vmode, int vertexCount, |
194 const SkPoint vertices[], const SkPoint texs[], | 197 const SkPoint vertices[], const SkPoint texs[], |
195 const SkColor colors[], SkXfermode* xmode, | 198 const SkColor colors[], SkXfermode* xmode, |
196 const uint16_t indices[], int indexCount, | 199 const uint16_t indices[], int indexCount, |
197 const SkPaint&) override; | 200 const SkPaint&) override; |
198 | 201 |
199 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 202 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 237 |
235 uint32_t fRecordFlags; | 238 uint32_t fRecordFlags; |
236 int fInitialSaveCount; | 239 int fInitialSaveCount; |
237 | 240 |
238 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 241 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
239 | 242 |
240 typedef SkCanvas INHERITED; | 243 typedef SkCanvas INHERITED; |
241 }; | 244 }; |
242 | 245 |
243 #endif | 246 #endif |
OLD | NEW |