Lines Matching full:picture

1 #Topic Picture
11 Picture records drawing commands made to Canvas. The command stream may be
14 Picture is an abstract class. Picture may be generated by Picture_Recorder
15 or Drawable, or from Picture previously saved to Data or Stream.
17 Picture may contain any Canvas drawing command, as well as one or more
18 Canvas_Matrix or Canvas_Clip. Picture has a cull Rect, which is used as
19 a bounding box hint. To limit Picture bounds, use Canvas_Clip when
20 recording or drawing Picture.
25 #Line # utility to stop picture playback ##
105 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
107 picture->playback(canvas, &callback);
119 #Line # constructs Picture from stream ##
129 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
131 picture->serialize(&writableStream);
146 #Line # constructs Picture from data ##
156 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
158 picture->serialize(&writableStream);
181 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
183 picture->serialize(&writableStream);
207 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
208 picture->playback(canvas);
219 #Line # returns bounds used to record Picture ##
224 Picture recorded bounds are smaller than contents; contents outside recorded
233 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
234 picture->playback(canvas);
237 canvas->drawRect(picture->cullRect(), paint);
248 #Line # returns identifier for Picture ##
254 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
255 SkDebugf("empty picture id = %d\n", picture->uniqueID());
259 empty picture id = 1
272 #Line # writes Picture to Data ##
282 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
283 sk_sp<SkData> readableData = picture->serialize();
304 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
306 picture->serialize(&writableStream);
328 void onDrawPicture(const SkPicture* picture, const SkMatrix* ,
330 const SkRect rect = picture->cullRect();
343 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
345 myCanvas.drawPicture(picture);
366 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
367 picture->playback(canvas);
368 std::string opCount = "approximate op count: " + std::to_string(picture->approximateOpCount());
390 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
391 picture->playback(canvas);
392 …std::string opCount = "approximate bytes used: " + std::to_string(picture->approximateBytesUsed());
402 #Topic Picture ##