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 |
11 #define SkPicture_DEFINED | 11 #define SkPicture_DEFINED |
12 | 12 |
13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
14 #include "SkDrawPictureCallback.h" | 14 #include "SkDrawPictureCallback.h" |
15 #include "SkImageDecoder.h" | 15 #include "SkImageDecoder.h" |
16 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
17 #include "SkTDArray.h" | 17 #include "SkTDArray.h" |
18 | 18 |
19 #if SK_SUPPORT_GPU | 19 #if SK_SUPPORT_GPU |
20 class GrContext; | 20 class GrContext; |
21 #endif | 21 #endif |
22 | 22 |
23 class SkBBHFactory; | |
24 class SkBBoxHierarchy; | 23 class SkBBoxHierarchy; |
25 class SkCanvas; | 24 class SkCanvas; |
26 class SkData; | 25 class SkData; |
27 class SkPictureData; | 26 class SkPictureData; |
28 class SkPictureRecord; | 27 class SkPictureRecord; |
29 class SkStream; | 28 class SkStream; |
30 class SkWStream; | 29 class SkWStream; |
31 | 30 |
32 struct SkPictInfo; | 31 struct SkPictInfo; |
33 | 32 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 281 |
283 friend class SkPictureData; // to access OperationList | 282 friend class SkPictureData; // to access OperationList |
284 friend class SkPictureRecorder; // just for SkPicture-based const
ructor | 283 friend class SkPictureRecorder; // just for SkPicture-based const
ructor |
285 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/
OperationList | 284 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/
OperationList |
286 friend class GrGatherCanvas; // needs to know if old or new pi
cture | 285 friend class GrGatherCanvas; // needs to know if old or new pi
cture |
287 friend class SkPicturePlayback; // to get fData & OperationList | 286 friend class SkPicturePlayback; // to get fData & OperationList |
288 friend class SkPictureReplacementPlayback; // to access OperationList | 287 friend class SkPictureReplacementPlayback; // to access OperationList |
289 | 288 |
290 typedef SkRefCnt INHERITED; | 289 typedef SkRefCnt INHERITED; |
291 | 290 |
292 SkPicture(int width, int height, SkRecord*); // Takes ownership. | 291 // Takes ownership of the SkRecord, refs the (optional) BBH. |
293 SkAutoTDelete<SkRecord> fRecord; | 292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
| 293 |
| 294 SkAutoTDelete<SkRecord> fRecord; |
| 295 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
294 bool fRecordWillPlayBackBitmaps; // TODO: const | 296 bool fRecordWillPlayBackBitmaps; // TODO: const |
295 }; | 297 }; |
296 | 298 |
297 #endif | 299 #endif |
OLD | NEW |