| 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 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 friend class SkEmptyPicture; | 187 friend class SkEmptyPicture; |
| 188 template <typename> friend class SkMiniPicture; | 188 template <typename> friend class SkMiniPicture; |
| 189 | 189 |
| 190 void serialize(SkWStream*, SkPixelSerializer*, SkRefCntSet* typefaces) const
; | 190 void serialize(SkWStream*, SkPixelSerializer*, SkRefCntSet* typefaces) const
; |
| 191 static sk_sp<SkPicture> MakeFromStream(SkStream*, InstallPixelRefProc, SkTyp
efacePlayback*); | 191 static sk_sp<SkPicture> MakeFromStream(SkStream*, InstallPixelRefProc, SkTyp
efacePlayback*); |
| 192 friend class SkPictureData; | 192 friend class SkPictureData; |
| 193 | 193 |
| 194 virtual int numSlowPaths() const = 0; | 194 virtual int numSlowPaths() const = 0; |
| 195 friend class SkPictureGpuAnalyzer; | 195 friend class SkPictureGpuAnalyzer; |
| 196 friend struct SkPathCounter; | 196 friend struct SkPathCounter; |
| 197 friend class SkPictureImageFilter; |
| 197 | 198 |
| 198 // V35: Store SkRect (rather then width & height) in header | 199 // V35: Store SkRect (rather then width & height) in header |
| 199 // V36: Remove (obsolete) alphatype from SkColorTable | 200 // V36: Remove (obsolete) alphatype from SkColorTable |
| 200 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) | 201 // V37: Added shadow only option to SkDropShadowImageFilter (last version to
record CLEAR) |
| 201 // V38: Added PictureResolution option to SkPictureImageFilter | 202 // V38: Added PictureResolution option to SkPictureImageFilter |
| 202 // V39: Added FilterLevel option to SkPictureImageFilter | 203 // V39: Added FilterLevel option to SkPictureImageFilter |
| 203 // V40: Remove UniqueID serialization from SkImageFilter. | 204 // V40: Remove UniqueID serialization from SkImageFilter. |
| 204 // V41: Added serialization of SkBitmapSource's filterQuality parameter | 205 // V41: Added serialization of SkBitmapSource's filterQuality parameter |
| 205 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? | 206 // V42: Added a bool to SkPictureShader serialization to indicate did-we-ser
ialize-a-picture? |
| 206 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data | 207 // V43: Added DRAW_IMAGE and DRAW_IMAGE_RECT opt codes to serialized data |
| (...skipping 18 matching lines...) Expand all Loading... |
| 225 const SkPictureData*, | 226 const SkPictureData*, |
| 226 const SkReadBuffer* buffer); | 227 const SkReadBuffer* buffer); |
| 227 | 228 |
| 228 SkPictInfo createHeader() const; | 229 SkPictInfo createHeader() const; |
| 229 SkPictureData* backport() const; | 230 SkPictureData* backport() const; |
| 230 | 231 |
| 231 mutable uint32_t fUniqueID; | 232 mutable uint32_t fUniqueID; |
| 232 }; | 233 }; |
| 233 | 234 |
| 234 #endif | 235 #endif |
| OLD | NEW |