| 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 "SkOncePtr.h" |
| 12 #include "SkPicture.h" | 12 #include "SkPicture.h" |
| 13 #include "SkTemplates.h" | 13 #include "SkTemplates.h" |
| 14 | 14 |
| 15 class SkBBoxHierarchy; | 15 class SkBBoxHierarchy; |
| 16 class SkRecord; | 16 class SkRecord; |
| 17 | 17 |
| 18 // 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. |
| 19 class SkBigPicture final : public SkPicture { | 19 class SkBigPicture final : public SkPicture { |
| 20 public: | 20 public: |
| 21 // AccelData provides a base class for device-specific acceleration data. | 21 // AccelData provides a base class for device-specific acceleration data. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool fHasText : 1; | 72 bool fHasText : 1; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 int numSlowPaths() const override; | 75 int numSlowPaths() const override; |
| 76 const Analysis& analysis() const; | 76 const Analysis& analysis() const; |
| 77 int drawableCount() const; | 77 int drawableCount() const; |
| 78 SkPicture const* const* drawablePicts() const; | 78 SkPicture const* const* drawablePicts() const; |
| 79 | 79 |
| 80 const SkRect fCullRect; | 80 const SkRect fCullRect; |
| 81 const size_t fApproxBytesUsedBySubPictures; | 81 const size_t fApproxBytesUsedBySubPictures; |
| 82 SkLazyPtr<const Analysis> fAnalysis; | 82 SkOncePtr<const Analysis> fAnalysis; |
| 83 SkAutoTUnref<const SkRecord> fRecord; | 83 SkAutoTUnref<const SkRecord> fRecord; |
| 84 SkAutoTDelete<const SnapshotArray> fDrawablePicts; | 84 SkAutoTDelete<const SnapshotArray> fDrawablePicts; |
| 85 SkAutoTUnref<const SkBBoxHierarchy> fBBH; | 85 SkAutoTUnref<const SkBBoxHierarchy> fBBH; |
| 86 SkAutoTUnref<const AccelData> fAccelData; | 86 SkAutoTUnref<const AccelData> fAccelData; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif//SkBigPicture_DEFINED | 89 #endif//SkBigPicture_DEFINED |
| OLD | NEW |