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

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

Issue 607763008: Update GrRecordReplaceDraw to use SkTDynamicHash & add ReplaceDraw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Updated Created 6 years, 2 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/GrLayerHoister.cpp » ('j') | src/gpu/GrRecordReplaceDraw.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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 void createHeader(SkPictInfo* info) const; 295 void createHeader(SkPictInfo* info) const;
296 static bool IsValidPictInfo(const SkPictInfo& info); 296 static bool IsValidPictInfo(const SkPictInfo& info);
297 297
298 friend class SkPictureData; // to access OperationList 298 friend class SkPictureData; // to access OperationList
299 friend class SkPictureRecorder; // just for SkPicture-based const ructor 299 friend class SkPictureRecorder; // just for SkPicture-based const ructor
300 friend class SkGpuDevice; // for fData access 300 friend class SkGpuDevice; // for fData access
301 friend class GrLayerHoister; // access to fRecord 301 friend class GrLayerHoister; // access to fRecord
302 friend class CollectLayers; // access to fRecord 302 friend class CollectLayers; // access to fRecord
303 friend class SkPicturePlayback; // to get fData & OperationList 303 friend class SkPicturePlayback; // to get fData & OperationList
304 friend void GrRecordReplaceDraw(const SkPicture* picture, 304 friend class ReplaceDraw;
305 SkCanvas* canvas,
306 const GrReplacements* replacements,
307 const SkMatrix& initialMatrix,
308 SkDrawPictureCallback* callback);
309 305
310 typedef SkRefCnt INHERITED; 306 typedef SkRefCnt INHERITED;
311 307
312 // Takes ownership of the SkRecord, refs the (optional) BBH. 308 // Takes ownership of the SkRecord, refs the (optional) BBH.
313 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); 309 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*);
314 // Return as a new SkPicture that's backed by SkRecord. 310 // Return as a new SkPicture that's backed by SkRecord.
315 static SkPicture* Forwardport(const SkPicture&); 311 static SkPicture* Forwardport(const SkPicture&);
316 312
317 SkAutoTDelete<SkRecord> fRecord; 313 SkAutoTDelete<SkRecord> fRecord;
318 SkAutoTUnref<SkBBoxHierarchy> fBBH; 314 SkAutoTUnref<SkBBoxHierarchy> fBBH;
319 315
320 struct PathCounter; 316 struct PathCounter;
321 317
322 struct Analysis { 318 struct Analysis {
323 Analysis() {} // Only used by SkPictureData codepath. 319 Analysis() {} // Only used by SkPictureData codepath.
324 explicit Analysis(const SkRecord&); 320 explicit Analysis(const SkRecord&);
325 321
326 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst; 322 bool suitableForGpuRasterization(const char** reason, int sampleCount) c onst;
327 323
328 bool fWillPlaybackBitmaps; 324 bool fWillPlaybackBitmaps;
329 bool fHasText; 325 bool fHasText;
330 int fNumPaintWithPathEffectUses; 326 int fNumPaintWithPathEffectUses;
331 int fNumFastPathDashEffects; 327 int fNumFastPathDashEffects;
332 int fNumAAConcavePaths; 328 int fNumAAConcavePaths;
333 int fNumAAHairlineConcavePaths; 329 int fNumAAHairlineConcavePaths;
334 } fAnalysis; 330 } fAnalysis;
335 }; 331 };
336 332
337 #endif 333 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | src/gpu/GrRecordReplaceDraw.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698