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

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

Issue 364823009: Port suitableForGpuRasterization to SkRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: PictureTest tweaks 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 | « gyp/core.gypi ('k') | 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 300
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 305
306 SkAutoTDelete<SkRecord> fRecord; 306 SkAutoTDelete<SkRecord> fRecord;
307 SkAutoTUnref<SkBBoxHierarchy> fBBH; 307 SkAutoTUnref<SkBBoxHierarchy> fBBH;
308 bool fRecordWillPlayBackBitmaps; // TODO: const 308
309 struct Analysis {
310 Analysis()
mtklein 2014/08/19 21:01:01 Maybe merge these false and 0s into init()? Eithe
311 : fWillPlaybackBitmaps(false)
312 , fNumPaintWithPathEffectUses(0)
313 , fNumFastPathDashEffects(0)
314 , fNumAAConcavePaths(0)
315 , fNumAAHairlineConcavePaths(0) { }
316
317 // To get setup to work cleanly, we cast away constness and call init()
318 // instead of trying to set everything during construction.
319 void init(const SkRecord&);
320
321 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst;
322
323 bool fWillPlaybackBitmaps;
324 int fNumPaintWithPathEffectUses;
325 int fNumFastPathDashEffects;
326 int fNumAAConcavePaths;
327 int fNumAAHairlineConcavePaths;
328 } const fAnalysis;
mtklein 2014/08/19 21:01:01 The indented fAnalysis perhaps has lost its meanin
309 }; 329 };
310 330
311 #endif 331 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698