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

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

Issue 454123003: Plumbing for using a BBH in SkRecordDraw. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clang says asserts are always true 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 | « dm/DMQuiltTask.cpp ('k') | include/core/SkPictureRecorder.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 SkBBHFactory;
24 class SkBBoxHierarchy; 23 class SkBBoxHierarchy;
25 class SkCanvas; 24 class SkCanvas;
26 class SkData; 25 class SkData;
27 class SkPictureData; 26 class SkPictureData;
28 class SkPictureRecord; 27 class SkPictureRecord;
29 class SkStream; 28 class SkStream;
30 class SkWStream; 29 class SkWStream;
31 30
32 struct SkPictInfo; 31 struct SkPictInfo;
33 32
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 281
283 friend class SkPictureData; // to access OperationList 282 friend class SkPictureData; // to access OperationList
284 friend class SkPictureRecorder; // just for SkPicture-based const ructor 283 friend class SkPictureRecorder; // just for SkPicture-based const ructor
285 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/ OperationList 284 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/ OperationList
286 friend class GrGatherCanvas; // needs to know if old or new pi cture 285 friend class GrGatherCanvas; // needs to know if old or new pi cture
287 friend class SkPicturePlayback; // to get fData & OperationList 286 friend class SkPicturePlayback; // to get fData & OperationList
288 friend class SkPictureReplacementPlayback; // to access OperationList 287 friend class SkPictureReplacementPlayback; // to access OperationList
289 288
290 typedef SkRefCnt INHERITED; 289 typedef SkRefCnt INHERITED;
291 290
292 SkPicture(int width, int height, SkRecord*); // Takes ownership. 291 // Takes ownership of the SkRecord, refs the (optional) BBH.
293 SkAutoTDelete<SkRecord> fRecord; 292 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
293
294 SkAutoTDelete<SkRecord> fRecord;
295 SkAutoTUnref<SkBBoxHierarchy> fBBH;
294 bool fRecordWillPlayBackBitmaps; // TODO: const 296 bool fRecordWillPlayBackBitmaps; // TODO: const
295 }; 297 };
296 298
297 #endif 299 #endif
OLDNEW
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | include/core/SkPictureRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698