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

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

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move to SkPictureUtils, start unit test Created 6 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 | « no previous file | include/utils/SkPictureUtils.h » ('j') | src/core/SkQuadTree.h » ('J')
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 void createHeader(SkPictInfo* info) const; 291 void createHeader(SkPictInfo* info) const;
292 static bool IsValidPictInfo(const SkPictInfo& info); 292 static bool IsValidPictInfo(const SkPictInfo& info);
293 293
294 friend class SkPictureData; // to access OperationList 294 friend class SkPictureData; // to access OperationList
295 friend class SkPictureRecorder; // just for SkPicture-based const ructor 295 friend class SkPictureRecorder; // just for SkPicture-based const ructor
296 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/ OperationList 296 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/ OperationList
297 friend class GrGatherCanvas; // needs to know if old or new pi cture 297 friend class GrGatherCanvas; // needs to know if old or new pi cture
298 friend class SkPicturePlayback; // to get fData & OperationList 298 friend class SkPicturePlayback; // to get fData & OperationList
299 friend class SkPictureReplacementPlayback; // to access OperationList 299 friend class SkPictureReplacementPlayback; // to access OperationList
300 friend class SkPictureUtils;
300 301
301 typedef SkRefCnt INHERITED; 302 typedef SkRefCnt INHERITED;
302 303
303 // Takes ownership of the SkRecord, refs the (optional) BBH. 304 // Takes ownership of the SkRecord, refs the (optional) BBH.
304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); 305 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
305 // Return as a new SkPicture that's backed by SkRecord. 306 // Return as a new SkPicture that's backed by SkRecord.
306 static SkPicture* Forwardport(const SkPicture&); 307 static SkPicture* Forwardport(const SkPicture&);
307 308
308 SkAutoTDelete<SkRecord> fRecord; 309 SkAutoTDelete<SkRecord> fRecord;
309 SkAutoTUnref<SkBBoxHierarchy> fBBH; 310 SkAutoTUnref<SkBBoxHierarchy> fBBH;
310 311
311 struct PathCounter; 312 struct PathCounter;
312 313
313 struct Analysis { 314 struct Analysis {
314 Analysis() {} // Only used by SkPictureData codepath. 315 Analysis() {} // Only used by SkPictureData codepath.
315 explicit Analysis(const SkRecord&); 316 explicit Analysis(const SkRecord&);
316 317
317 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst; 318 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst;
318 319
319 bool fWillPlaybackBitmaps; 320 bool fWillPlaybackBitmaps;
320 bool fHasText; 321 bool fHasText;
321 int fNumPaintWithPathEffectUses; 322 int fNumPaintWithPathEffectUses;
322 int fNumFastPathDashEffects; 323 int fNumFastPathDashEffects;
323 int fNumAAConcavePaths; 324 int fNumAAConcavePaths;
324 int fNumAAHairlineConcavePaths; 325 int fNumAAHairlineConcavePaths;
325 } fAnalysis; 326 } fAnalysis;
326 }; 327 };
327 328
328 #endif 329 #endif
OLDNEW
« no previous file with comments | « no previous file | include/utils/SkPictureUtils.h » ('j') | src/core/SkQuadTree.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698