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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 friend class SkPicturePlayback; // to get fData & OperationList | 298 friend class SkPicturePlayback; // to get fData & OperationList |
299 friend class SkPictureReplacementPlayback; // to access OperationList | 299 friend class SkPictureReplacementPlayback; // to access OperationList |
300 | 300 |
301 typedef SkRefCnt INHERITED; | 301 typedef SkRefCnt INHERITED; |
302 | 302 |
303 // Takes ownership of the SkRecord, refs the (optional) BBH. | 303 // Takes ownership of the SkRecord, refs the (optional) BBH. |
304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); | 304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
305 | 305 |
306 SkAutoTDelete<SkRecord> fRecord; | 306 SkAutoTDelete<SkRecord> fRecord; |
307 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 307 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
308 bool fRecordWillPlayBackBitmaps; // TODO: const | 308 |
| 309 struct Analysis { |
| 310 Analysis() |
| 311 : fWillPlaybackBitmaps(false) |
| 312 , fSuitableForGpuRasterization(false) |
| 313 , fGpuRasterizationReason(NULL) { } |
| 314 Analysis(const SkRecord&); |
| 315 |
| 316 bool fWillPlaybackBitmaps; |
| 317 bool fSuitableForGpuRasterization; |
| 318 const char* fGpuRasterizationReason; |
| 319 } const fAnalysis; |
309 }; | 320 }; |
310 | 321 |
311 #endif | 322 #endif |
OLD | NEW |