Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/core/SkBigPicture.h

Issue 1322933005: Port uses of SkLazyPtr to SkOncePtr. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: name Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/private/SkOncePtr.h ('k') | src/core/SkBigPicture.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/private/SkOncePtr.h ('k') | src/core/SkBigPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698