| 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 SkPictureData_DEFINED | 8 #ifndef SkPictureData_DEFINED |
| 9 #define SkPictureData_DEFINED | 9 #define SkPictureData_DEFINED |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL)
; | 77 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL)
; |
| 78 #endif | 78 #endif |
| 79 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop
yOps); | 79 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop
yOps); |
| 80 static SkPictureData* CreateFromStream(SkStream*, | 80 static SkPictureData* CreateFromStream(SkStream*, |
| 81 const SkPictInfo&, | 81 const SkPictInfo&, |
| 82 SkPicture::InstallPixelRefProc); | 82 SkPicture::InstallPixelRefProc); |
| 83 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&); | 83 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&); |
| 84 | 84 |
| 85 virtual ~SkPictureData(); | 85 virtual ~SkPictureData(); |
| 86 | 86 |
| 87 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const
; | 87 const SkPicture::OperationList* getActiveOps(const SkRect& queryRect) const; |
| 88 | 88 |
| 89 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; | 89 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
| 90 void flatten(SkWriteBuffer&) const; | 90 void flatten(SkWriteBuffer&) const; |
| 91 | 91 |
| 92 bool containsBitmaps() const; | 92 bool containsBitmaps() const; |
| 93 | 93 |
| 94 bool hasText() const { return fContentInfo.hasText(); } | 94 bool hasText() const { return fContentInfo.hasText(); } |
| 95 | 95 |
| 96 int opCount() const { return fContentInfo.numOperations(); } | 96 int opCount() const { return fContentInfo.numOperations(); } |
| 97 | 97 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 const SkPictInfo fInfo; | 205 const SkPictInfo fInfo; |
| 206 | 206 |
| 207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |
| 208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |
| 209 | 209 |
| 210 void initForPlayback() const; | 210 void initForPlayback() const; |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 #endif | 213 #endif |
| OLD | NEW |