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

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

Issue 1452193002: Respect SkPictureRecorder::kPlaybackDrawPicture_RecordFlag for SkDrawables (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment Created 5 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/SkRecorder.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPictureRecorder_DEFINED 8 #ifndef SkPictureRecorder_DEFINED
9 #define SkPictureRecorder_DEFINED 9 #define SkPictureRecorder_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 class SK_API SkPictureRecorder : SkNoncopyable { 28 class SK_API SkPictureRecorder : SkNoncopyable {
29 public: 29 public:
30 SkPictureRecorder(); 30 SkPictureRecorder();
31 ~SkPictureRecorder(); 31 ~SkPictureRecorder();
32 32
33 enum RecordFlags { 33 enum RecordFlags {
34 // This flag indicates that, if some BHH is being computed, saveLayer 34 // This flag indicates that, if some BHH is being computed, saveLayer
35 // information should also be extracted at the same time. 35 // information should also be extracted at the same time.
36 kComputeSaveLayerInfo_RecordFlag = 0x01, 36 kComputeSaveLayerInfo_RecordFlag = 0x01,
37 37
38 // If you call drawPicture() on the recording canvas, this flag forces 38 // If you call drawPicture() or drawDrawable() on the recording canvas, this flag forces
39 // that to use SkPicture::playback() immediately rather than (e.g.) reff ing the picture. 39 // that object to playback its contents immediately rather than reffing the object.
40 kPlaybackDrawPicture_RecordFlag = 0x02, 40 kPlaybackDrawPicture_RecordFlag = 0x02,
41 }; 41 };
42 42
43 /** Returns the canvas that records the drawing commands. 43 /** Returns the canvas that records the drawing commands.
44 @param bounds the cull rect used when recording this picture. Any drawin g the falls outside 44 @param bounds the cull rect used when recording this picture. Any drawin g the falls outside
45 of this rect is undefined, and may be drawn or it may not. 45 of this rect is undefined, and may be drawn or it may not.
46 @param bbhFactory factory to create desired acceleration structure 46 @param bbhFactory factory to create desired acceleration structure
47 @param recordFlags optional flags that control recording. 47 @param recordFlags optional flags that control recording.
48 @return the canvas. 48 @return the canvas.
49 */ 49 */
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 SkRect fCullRect; 117 SkRect fCullRect;
118 SkAutoTUnref<SkBBoxHierarchy> fBBH; 118 SkAutoTUnref<SkBBoxHierarchy> fBBH;
119 SkAutoTUnref<SkRecorder> fRecorder; 119 SkAutoTUnref<SkRecorder> fRecorder;
120 SkAutoTUnref<SkRecord> fRecord; 120 SkAutoTUnref<SkRecord> fRecord;
121 SkMiniRecorder fMiniRecorder; 121 SkMiniRecorder fMiniRecorder;
122 122
123 typedef SkNoncopyable INHERITED; 123 typedef SkNoncopyable INHERITED;
124 }; 124 };
125 125
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698