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

Side by Side Diff: include/core/SkPicture.h

Issue 464433002: Add layer counting to SkPictureRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address code review comments Created 6 years, 4 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 | « no previous file | src/core/SkPicture.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 /* 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 If false is returned, SkPictInfo is unmodified. 180 If false is returned, SkPictInfo is unmodified.
181 */ 181 */
182 static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*); 182 static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*);
183 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); 183 static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*);
184 184
185 /** Return true if the picture is suitable for rendering on the GPU. 185 /** Return true if the picture is suitable for rendering on the GPU.
186 */ 186 */
187 187
188 #if SK_SUPPORT_GPU 188 #if SK_SUPPORT_GPU
189 bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const; 189 bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const;
190
191 bool suitableForOptimization() const;
bsalomon 2014/08/11 20:58:20 This seems really general. It's really about suita
robertphillips 2014/08/11 21:17:48 Right - we don't want the picture stats to be API-
190 #endif 192 #endif
191 193
192 class DeletionListener : public SkRefCnt { 194 class DeletionListener : public SkRefCnt {
193 public: 195 public:
194 virtual void onDeletion(uint32_t pictureID) = 0; 196 virtual void onDeletion(uint32_t pictureID) = 0;
195 }; 197 };
196 198
197 // Takes ref on listener. 199 // Takes ref on listener.
198 void addDeletionListener(DeletionListener* listener) const; 200 void addDeletionListener(DeletionListener* listener) const;
199 201
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 292
291 // Takes ownership of the SkRecord, refs the (optional) BBH. 293 // Takes ownership of the SkRecord, refs the (optional) BBH.
292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); 294 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
293 295
294 SkAutoTDelete<SkRecord> fRecord; 296 SkAutoTDelete<SkRecord> fRecord;
295 SkAutoTUnref<SkBBoxHierarchy> fBBH; 297 SkAutoTUnref<SkBBoxHierarchy> fBBH;
296 bool fRecordWillPlayBackBitmaps; // TODO: const 298 bool fRecordWillPlayBackBitmaps; // TODO: const
297 }; 299 };
298 300
299 #endif 301 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698