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

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

Issue 716913003: Move SkRecordComputeLayers and CollectLayers into SkRecordDraw.cpp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review issues Created 6 years, 1 month 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/SkRecordDraw.h » ('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
11 #define SkPicture_DEFINED 11 #define SkPicture_DEFINED
12 12
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkDrawPictureCallback.h" 14 #include "SkDrawPictureCallback.h"
15 #include "SkImageDecoder.h" 15 #include "SkImageDecoder.h"
16 #include "SkRefCnt.h" 16 #include "SkRefCnt.h"
17 #include "SkTDArray.h" 17 #include "SkTDArray.h"
18 18
19 #if SK_SUPPORT_GPU 19 #if SK_SUPPORT_GPU
20 class GrContext; 20 class GrContext;
21 #endif 21 #endif
22 22
23 class GrAccelData;
24 class GrReplacements;
25 class SkBBoxHierarchy; 23 class SkBBoxHierarchy;
26 class SkCanvas; 24 class SkCanvas;
27 class SkData; 25 class SkData;
28 class SkPictureData; 26 class SkPictureData;
29 class SkPictureRecord; 27 class SkPictureRecord;
30 class SkStream; 28 class SkStream;
31 class SkWStream; 29 class SkWStream;
32 30
33 struct SkPictInfo; 31 struct SkPictInfo;
34 32
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo ol deepCopyOps); 274 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo ol deepCopyOps);
277 275
278 void createHeader(SkPictInfo* info) const; 276 void createHeader(SkPictInfo* info) const;
279 static bool IsValidPictInfo(const SkPictInfo& info); 277 static bool IsValidPictInfo(const SkPictInfo& info);
280 278
281 friend class SkPictureRecorder; // SkRecord-based constructor. 279 friend class SkPictureRecorder; // SkRecord-based constructor.
282 friend class SkGpuDevice; // for fData access 280 friend class SkGpuDevice; // for fData access
283 friend class GrLayerHoister; // access to fRecord 281 friend class GrLayerHoister; // access to fRecord
284 friend class SkPicturePlayback; // to get fData 282 friend class SkPicturePlayback; // to get fData
285 friend class ReplaceDraw; 283 friend class ReplaceDraw;
286 friend const GrAccelData* GPUOptimize(const SkPicture* pict);
287 284
288 typedef SkRefCnt INHERITED; 285 typedef SkRefCnt INHERITED;
289 286
290 // Takes ownership of the SkRecord, refs the (optional) BBH. 287 // Takes ownership of the SkRecord, refs the (optional) BBH.
291 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); 288 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*);
292 // Return as a new SkPicture that's backed by SkRecord. 289 // Return as a new SkPicture that's backed by SkRecord.
293 static SkPicture* Forwardport(const SkPicture&); 290 static SkPicture* Forwardport(const SkPicture&);
294 // Return as a new SkPicture that's backed by the old backend. 291 // Return as a new SkPicture that's backed by the old backend.
295 static SkPicture* Backport(const SkRecord& src, const SkRect& cullRect); 292 static SkPicture* Backport(const SkRecord& src, const SkRect& cullRect);
296 293
(...skipping 12 matching lines...) Expand all
309 bool fHasText; 306 bool fHasText;
310 int fNumPaintWithPathEffectUses; 307 int fNumPaintWithPathEffectUses;
311 int fNumFastPathDashEffects; 308 int fNumFastPathDashEffects;
312 int fNumAAConcavePaths; 309 int fNumAAConcavePaths;
313 int fNumAAHairlineConcavePaths; 310 int fNumAAHairlineConcavePaths;
314 int fNumAADFEligibleConcavePaths; 311 int fNumAADFEligibleConcavePaths;
315 } fAnalysis; 312 } fAnalysis;
316 }; 313 };
317 314
318 #endif 315 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkRecordDraw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698