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

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

Issue 685263004: Upgrade GPUOptimize (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up test 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/gpu/GrLayerHoister.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 15 matching lines...) Expand all
26 class SkData; 26 class SkData;
27 class SkPictureData; 27 class SkPictureData;
28 class SkPictureRecord; 28 class SkPictureRecord;
29 class SkStream; 29 class SkStream;
30 class SkWStream; 30 class SkWStream;
31 31
32 struct SkPictInfo; 32 struct SkPictInfo;
33 33
34 class SkRecord; 34 class SkRecord;
35 35
36 namespace SkRecords {
37 class CollectLayers;
38 };
39
36 /** \class SkPicture 40 /** \class SkPicture
37 41
38 The SkPicture class records the drawing commands made to a canvas, to 42 The SkPicture class records the drawing commands made to a canvas, to
39 be played back at a later time. 43 be played back at a later time.
40 */ 44 */
41 class SK_API SkPicture : public SkRefCnt { 45 class SK_API SkPicture : public SkRefCnt {
42 public: 46 public:
43 SK_DECLARE_INST_COUNT(SkPicture) 47 SK_DECLARE_INST_COUNT(SkPicture)
44 48
45 // AccelData provides a base class for device-specific acceleration 49 // AccelData provides a base class for device-specific acceleration
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 SkPicture(SkPictureData* data, SkScalar width, SkScalar height); 273 SkPicture(SkPictureData* data, SkScalar width, SkScalar height);
270 274
271 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo ol deepCopyOps); 275 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo ol deepCopyOps);
272 276
273 void createHeader(SkPictInfo* info) const; 277 void createHeader(SkPictInfo* info) const;
274 static bool IsValidPictInfo(const SkPictInfo& info); 278 static bool IsValidPictInfo(const SkPictInfo& info);
275 279
276 friend class SkPictureRecorder; // SkRecord-based constructor. 280 friend class SkPictureRecorder; // SkRecord-based constructor.
277 friend class SkGpuDevice; // for fData access 281 friend class SkGpuDevice; // for fData access
278 friend class GrLayerHoister; // access to fRecord 282 friend class GrLayerHoister; // access to fRecord
279 friend class CollectLayers; // access to fRecord 283 friend class SkRecords::CollectLayers; // access to fRecord
280 friend class SkPicturePlayback; // to get fData 284 friend class SkPicturePlayback; // to get fData
281 friend class ReplaceDraw; 285 friend class ReplaceDraw;
282 286
283 typedef SkRefCnt INHERITED; 287 typedef SkRefCnt INHERITED;
284 288
285 // Takes ownership of the SkRecord, refs the (optional) BBH. 289 // Takes ownership of the SkRecord, refs the (optional) BBH.
286 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); 290 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*);
287 // Return as a new SkPicture that's backed by SkRecord. 291 // Return as a new SkPicture that's backed by SkRecord.
288 static SkPicture* Forwardport(const SkPicture&); 292 static SkPicture* Forwardport(const SkPicture&);
289 // Return as a new SkPicture that's backed by the old backend. 293 // Return as a new SkPicture that's backed by the old backend.
(...skipping 13 matching lines...) Expand all
303 bool fWillPlaybackBitmaps; 307 bool fWillPlaybackBitmaps;
304 bool fHasText; 308 bool fHasText;
305 int fNumPaintWithPathEffectUses; 309 int fNumPaintWithPathEffectUses;
306 int fNumFastPathDashEffects; 310 int fNumFastPathDashEffects;
307 int fNumAAConcavePaths; 311 int fNumAAConcavePaths;
308 int fNumAAHairlineConcavePaths; 312 int fNumAAHairlineConcavePaths;
309 } fAnalysis; 313 } fAnalysis;
310 }; 314 };
311 315
312 #endif 316 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698