OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 * number may be greater or less than the number of SkCanvas calls | 201 * number may be greater or less than the number of SkCanvas calls |
202 * recorded: some calls may be recorded as more than one operation, or some | 202 * recorded: some calls may be recorded as more than one operation, or some |
203 * calls may be optimized away. | 203 * calls may be optimized away. |
204 */ | 204 */ |
205 int approximateOpCount() const; | 205 int approximateOpCount() const; |
206 | 206 |
207 /** Return true if this picture contains text. | 207 /** Return true if this picture contains text. |
208 */ | 208 */ |
209 bool hasText() const; | 209 bool hasText() const; |
210 | 210 |
211 /** Returns zero for unsupported implementations. */ | |
212 size_t bytesUsed() const; | |
mtklein
2014/08/21 17:18:06
I'd perhaps hedge to approximateBytesUsed(), like
| |
213 | |
211 private: | 214 private: |
212 // V2 : adds SkPixelRef's generation ID. | 215 // V2 : adds SkPixelRef's generation ID. |
213 // V3 : PictInfo tag at beginning, and EOF tag at the end | 216 // V3 : PictInfo tag at beginning, and EOF tag at the end |
214 // V4 : move SkPictInfo to be the header | 217 // V4 : move SkPictInfo to be the header |
215 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) | 218 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) |
216 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) | 219 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) |
217 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 220 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
218 // V8 : Add an option for encoding bitmaps | 221 // V8 : Add an option for encoding bitmaps |
219 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 222 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
220 // SK_SUPPORT_HINTING_SCALE_FACTOR | 223 // SK_SUPPORT_HINTING_SCALE_FACTOR |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
317 bool fWillPlaybackBitmaps; | 320 bool fWillPlaybackBitmaps; |
318 bool fHasText; | 321 bool fHasText; |
319 int fNumPaintWithPathEffectUses; | 322 int fNumPaintWithPathEffectUses; |
320 int fNumFastPathDashEffects; | 323 int fNumFastPathDashEffects; |
321 int fNumAAConcavePaths; | 324 int fNumAAConcavePaths; |
322 int fNumAAHairlineConcavePaths; | 325 int fNumAAHairlineConcavePaths; |
323 } fAnalysis; | 326 } fAnalysis; |
324 }; | 327 }; |
325 | 328 |
326 #endif | 329 #endif |
OLD | NEW |