OLD | NEW |
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 * Creates a thread-safe clone of the picture that is ready for playback. | 116 * Creates a thread-safe clone of the picture that is ready for playback. |
117 */ | 117 */ |
118 SkPicture* clone() const; | 118 SkPicture* clone() const; |
119 | 119 |
120 /** | 120 /** |
121 * Creates multiple thread-safe clones of this picture that are ready for | 121 * Creates multiple thread-safe clones of this picture that are ready for |
122 * playback. The resulting clones are stored in the provided array of | 122 * playback. The resulting clones are stored in the provided array of |
123 * SkPictures. | 123 * SkPictures. |
124 */ | 124 */ |
125 void clone(SkPicture* pictures, int count) const; | 125 void clone(SkPicture* pictures, int count) const; |
126 void clone(SkPicture* pictures[], int count) const; | |
127 #endif | 126 #endif |
128 | 127 |
129 /** Replays the drawing commands on the specified canvas. | 128 /** Replays the drawing commands on the specified canvas. |
130 @param canvas the canvas receiving the drawing commands. | 129 @param canvas the canvas receiving the drawing commands. |
131 */ | 130 */ |
132 void draw(SkCanvas* canvas, SkDrawPictureCallback* = NULL) const; | 131 void draw(SkCanvas* canvas, SkDrawPictureCallback* = NULL) const; |
133 | 132 |
134 /** Return the width of the picture's recording canvas. This | 133 /** Return the width of the picture's recording canvas. This |
135 value reflects what was passed to setSize(), and does not necessarily | 134 value reflects what was passed to setSize(), and does not necessarily |
136 reflect the bounds of what has been recorded into the picture. | 135 reflect the bounds of what has been recorded into the picture. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 friend class SkPictureReplacementPlayback; // to access OperationList | 288 friend class SkPictureReplacementPlayback; // to access OperationList |
290 | 289 |
291 typedef SkRefCnt INHERITED; | 290 typedef SkRefCnt INHERITED; |
292 | 291 |
293 SkPicture(int width, int height, SkRecord*); // Takes ownership. | 292 SkPicture(int width, int height, SkRecord*); // Takes ownership. |
294 SkAutoTDelete<SkRecord> fRecord; | 293 SkAutoTDelete<SkRecord> fRecord; |
295 bool fRecordWillPlayBackBitmaps; // TODO: const | 294 bool fRecordWillPlayBackBitmaps; // TODO: const |
296 }; | 295 }; |
297 | 296 |
298 #endif | 297 #endif |
OLD | NEW |