Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
SkPictureRecorderReplayTester Class Reference

Static Public Member Functions

static sk_sp< SkPictureCopy (SkPictureRecorder *recorder)
 

Detailed Description

Definition at line 168 of file PictureTest.cpp.

Member Function Documentation

◆ Copy()

static sk_sp< SkPicture > SkPictureRecorderReplayTester::Copy ( SkPictureRecorder recorder)
inlinestatic

Definition at line 170 of file PictureTest.cpp.

170 {
171 SkPictureRecorder recorder2;
172
173 SkCanvas* canvas = recorder2.beginRecording(10, 10);
174
175 recorder->partialReplay(canvas);
176
177 return recorder2.finishRecordingAsPicture();
178 }
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()

The documentation for this class was generated from the following file: