| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
| 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 SkPicture_DEFINED | 8 #ifndef SkPicture_DEFINED |
| 9 #define SkPicture_DEFINED | 9 #define SkPicture_DEFINED |
| 10 | 10 |
| 11 #include "SkImageDecoder.h" | |
| 12 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
| 13 #include "SkTypes.h" | 12 #include "SkTypes.h" |
| 14 | 13 |
| 15 class GrContext; | 14 class GrContext; |
| 16 class SkBigPicture; | 15 class SkBigPicture; |
| 17 class SkBitmap; | 16 class SkBitmap; |
| 18 class SkCanvas; | 17 class SkCanvas; |
| 18 class SkPath; |
| 19 class SkPictureData; | 19 class SkPictureData; |
| 20 class SkPixelSerializer; | 20 class SkPixelSerializer; |
| 21 class SkReadBuffer; |
| 21 class SkRefCntSet; | 22 class SkRefCntSet; |
| 23 class SkRect; |
| 22 class SkStream; | 24 class SkStream; |
| 23 class SkTypefacePlayback; | 25 class SkTypefacePlayback; |
| 24 class SkWStream; | 26 class SkWStream; |
| 27 class SkWriteBuffer; |
| 25 struct SkPictInfo; | 28 struct SkPictInfo; |
| 26 | 29 |
| 27 #define SK_SUPPORT_LEGACY_PICTURE_PTR | 30 #define SK_SUPPORT_LEGACY_PICTURE_PTR |
| 28 | 31 |
| 29 /** \class SkPicture | 32 /** \class SkPicture |
| 30 | 33 |
| 31 An SkPicture records drawing commands made to a canvas to be played back at
a later time. | 34 An SkPicture records drawing commands made to a canvas to be played back at
a later time. |
| 32 This base class handles serialization and a few other miscellany. | 35 This base class handles serialization and a few other miscellany. |
| 33 */ | 36 */ |
| 34 class SK_API SkPicture : public SkRefCnt { | 37 class SK_API SkPicture : public SkRefCnt { |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 static bool IsValidPictInfo(const SkPictInfo& info); | 225 static bool IsValidPictInfo(const SkPictInfo& info); |
| 223 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, const SkPictureData*)
; | 226 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, const SkPictureData*)
; |
| 224 | 227 |
| 225 SkPictInfo createHeader() const; | 228 SkPictInfo createHeader() const; |
| 226 SkPictureData* backport() const; | 229 SkPictureData* backport() const; |
| 227 | 230 |
| 228 mutable uint32_t fUniqueID; | 231 mutable uint32_t fUniqueID; |
| 229 }; | 232 }; |
| 230 | 233 |
| 231 #endif | 234 #endif |
| OLD | NEW |