OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkBigPicture_DEFINED | 8 #ifndef SkBigPicture_DEFINED |
9 #define SkBigPicture_DEFINED | 9 #define SkBigPicture_DEFINED |
10 | 10 |
| 11 #include "SkLazyPtr.h" |
11 #include "SkPicture.h" | 12 #include "SkPicture.h" |
12 #include "SkLazyPtr.h" | 13 #include "SkTemplates.h" |
13 | 14 |
14 class SkBBoxHierarchy; | 15 class SkBBoxHierarchy; |
15 class SkRecord; | 16 class SkRecord; |
16 | 17 |
17 // An implementation of SkPicture supporting an arbitrary number of drawing comm
ands. | 18 // An implementation of SkPicture supporting an arbitrary number of drawing comm
ands. |
18 class SkBigPicture final : public SkPicture { | 19 class SkBigPicture final : public SkPicture { |
19 public: | 20 public: |
20 // AccelData provides a base class for device-specific acceleration data. | 21 // AccelData provides a base class for device-specific acceleration data. |
21 class AccelData : public SkRefCnt { }; | 22 class AccelData : public SkRefCnt { }; |
22 | 23 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const SkRect fCullRect; | 80 const SkRect fCullRect; |
80 const size_t fApproxBytesUsedBySubPictures; | 81 const size_t fApproxBytesUsedBySubPictures; |
81 SkLazyPtr<const Analysis> fAnalysis; | 82 SkLazyPtr<const Analysis> fAnalysis; |
82 SkAutoTUnref<const SkRecord> fRecord; | 83 SkAutoTUnref<const SkRecord> fRecord; |
83 SkAutoTDelete<const SnapshotArray> fDrawablePicts; | 84 SkAutoTDelete<const SnapshotArray> fDrawablePicts; |
84 SkAutoTUnref<const SkBBoxHierarchy> fBBH; | 85 SkAutoTUnref<const SkBBoxHierarchy> fBBH; |
85 SkAutoTUnref<const AccelData> fAccelData; | 86 SkAutoTUnref<const AccelData> fAccelData; |
86 }; | 87 }; |
87 | 88 |
88 #endif//SkBigPicture_DEFINED | 89 #endif//SkBigPicture_DEFINED |
OLD | NEW |