| 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) | |
| 189 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; | 187 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) override; |
| 190 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 188 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
| 191 const SkPaint*) override; | 189 const SkPaint*) override; |
| 192 #endif | |
| 193 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 190 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
| 194 const SkPaint*) override; | 191 const SkPaint*) override; |
| 195 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; | 192 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri
de; |
| 196 void onDrawVertices(VertexMode vmode, int vertexCount, | 193 void onDrawVertices(VertexMode vmode, int vertexCount, |
| 197 const SkPoint vertices[], const SkPoint texs[], | 194 const SkPoint vertices[], const SkPoint texs[], |
| 198 const SkColor colors[], SkXfermode* xmode, | 195 const SkColor colors[], SkXfermode* xmode, |
| 199 const uint16_t indices[], int indexCount, | 196 const uint16_t indices[], int indexCount, |
| 200 const SkPaint&) override; | 197 const SkPaint&) override; |
| 201 | 198 |
| 202 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 199 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 234 |
| 238 uint32_t fRecordFlags; | 235 uint32_t fRecordFlags; |
| 239 int fInitialSaveCount; | 236 int fInitialSaveCount; |
| 240 | 237 |
| 241 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 238 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
| 242 | 239 |
| 243 typedef SkCanvas INHERITED; | 240 typedef SkCanvas INHERITED; |
| 244 }; | 241 }; |
| 245 | 242 |
| 246 #endif | 243 #endif |
| OLD | NEW |