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

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

Issue 504393002: Switch GPU Optimization code to SkRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up 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 | src/gpu/GrPictureUtils.h » ('j') | src/gpu/GrPictureUtils.cpp » ('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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 Return the operations required to render the content inside 'queryRect'. 287 Return the operations required to render the content inside 'queryRect'.
288 */ 288 */
289 const OperationList* EXPERIMENTAL_getActiveOps(const SkIRect& queryRect) con st; 289 const OperationList* EXPERIMENTAL_getActiveOps(const SkIRect& queryRect) con st;
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 CollectLayers; // access to fRecord
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 // 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
(...skipping 11 matching lines...) Expand all
319 bool fWillPlaybackBitmaps; 319 bool fWillPlaybackBitmaps;
320 bool fHasText; 320 bool fHasText;
321 int fNumPaintWithPathEffectUses; 321 int fNumPaintWithPathEffectUses;
322 int fNumFastPathDashEffects; 322 int fNumFastPathDashEffects;
323 int fNumAAConcavePaths; 323 int fNumAAConcavePaths;
324 int fNumAAHairlineConcavePaths; 324 int fNumAAHairlineConcavePaths;
325 } fAnalysis; 325 } fAnalysis;
326 }; 326 };
327 327
328 #endif 328 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrPictureUtils.h » ('j') | src/gpu/GrPictureUtils.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698