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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const
; | 146 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const
; |
147 | 147 |
148 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; | 148 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
149 void flatten(SkWriteBuffer&) const; | 149 void flatten(SkWriteBuffer&) const; |
150 | 150 |
151 void dumpSize() const; | 151 void dumpSize() const; |
152 | 152 |
153 bool containsBitmaps() const; | 153 bool containsBitmaps() const; |
154 | 154 |
| 155 const SkData* opData() const { return fOpData; } |
| 156 |
155 protected: | 157 protected: |
156 explicit SkPictureData(const SkPictInfo& info); | 158 explicit SkPictureData(const SkPictInfo& info); |
157 | 159 |
158 bool parseStream(SkStream*, SkPicture::InstallPixelRefProc); | 160 bool parseStream(SkStream*, SkPicture::InstallPixelRefProc); |
159 bool parseBuffer(SkReadBuffer& buffer); | 161 bool parseBuffer(SkReadBuffer& buffer); |
160 | 162 |
161 private: | 163 private: |
162 | 164 |
163 const SkBitmap& getBitmap(SkReader32* reader) const { | 165 const SkBitmap& getBitmap(SkReader32* reader) const { |
164 const int index = reader->readInt(); | 166 const int index = reader->readInt(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 276 |
275 const SkPictInfo fInfo; | 277 const SkPictInfo fInfo; |
276 | 278 |
277 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 279 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |
278 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 280 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |
279 | 281 |
280 void initForPlayback() const; | 282 void initForPlayback() const; |
281 }; | 283 }; |
282 | 284 |
283 #endif | 285 #endif |
OLD | NEW |