| 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 11 matching lines...) Expand all Loading... |
| 22 small = (combined >> 24) & 0xFF; \ | 22 small = (combined >> 24) & 0xFF; \ |
| 23 large = combined & MASK_24; | 23 large = combined & MASK_24; |
| 24 #define PACK_8_24(small, large) ((small << 24) | large) | 24 #define PACK_8_24(small, large) ((small << 24) | large) |
| 25 | 25 |
| 26 | 26 |
| 27 class SkPictureRecord : public SkCanvas { | 27 class SkPictureRecord : public SkCanvas { |
| 28 public: | 28 public: |
| 29 SkPictureRecord(const SkISize& dimensions, uint32_t recordFlags); | 29 SkPictureRecord(const SkISize& dimensions, uint32_t recordFlags); |
| 30 virtual ~SkPictureRecord(); | 30 virtual ~SkPictureRecord(); |
| 31 | 31 |
| 32 virtual void clear(SkColor) SK_OVERRIDE; | |
| 33 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 32 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 34 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], | 33 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], |
| 35 const SkPaint&) SK_OVERRIDE; | 34 const SkPaint&) SK_OVERRIDE; |
| 36 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 35 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
| 37 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 36 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
| 38 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 37 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
| 39 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | 38 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
| 40 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top, | 39 virtual void drawBitmap(const SkBitmap&, SkScalar left, SkScalar top, |
| 41 const SkPaint*) SK_OVERRIDE; | 40 const SkPaint*) SK_OVERRIDE; |
| 42 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, | 41 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 244 |
| 246 uint32_t fRecordFlags; | 245 uint32_t fRecordFlags; |
| 247 int fInitialSaveCount; | 246 int fInitialSaveCount; |
| 248 | 247 |
| 249 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 248 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
| 250 | 249 |
| 251 typedef SkCanvas INHERITED; | 250 typedef SkCanvas INHERITED; |
| 252 }; | 251 }; |
| 253 | 252 |
| 254 #endif | 253 #endif |
| OLD | NEW |