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

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

Issue 495793002: Our SkPicture::Analysis visitors should recurse into nested pictures. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 typedef SkRefCnt INHERITED; 301 typedef SkRefCnt INHERITED;
302 302
303 // Takes ownership of the SkRecord, refs the (optional) BBH. 303 // Takes ownership of the SkRecord, refs the (optional) BBH.
304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); 304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
305 // Return as a new SkPicture that's backed by SkRecord. 305 // Return as a new SkPicture that's backed by SkRecord.
306 static SkPicture* Forwardport(const SkPicture&); 306 static SkPicture* Forwardport(const SkPicture&);
307 307
308 SkAutoTDelete<SkRecord> fRecord; 308 SkAutoTDelete<SkRecord> fRecord;
309 SkAutoTUnref<SkBBoxHierarchy> fBBH; 309 SkAutoTUnref<SkBBoxHierarchy> fBBH;
310 310
311 struct PathCounter;
312
311 struct Analysis { 313 struct Analysis {
312 Analysis() {} // Only used by SkPictureData codepath. 314 Analysis() {} // Only used by SkPictureData codepath.
313 explicit Analysis(const SkRecord&); 315 explicit Analysis(const SkRecord&);
314 316
315 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst; 317 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst;
316 318
317 bool fWillPlaybackBitmaps; 319 bool fWillPlaybackBitmaps;
318 bool fHasText; 320 bool fHasText;
319 int fNumPaintWithPathEffectUses; 321 int fNumPaintWithPathEffectUses;
320 int fNumFastPathDashEffects; 322 int fNumFastPathDashEffects;
321 int fNumAAConcavePaths; 323 int fNumAAConcavePaths;
322 int fNumAAHairlineConcavePaths; 324 int fNumAAHairlineConcavePaths;
323 } fAnalysis; 325 } fAnalysis;
324 }; 326 };
325 327
326 #endif 328 #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