OLD | NEW |
---|---|
(Empty) | |
1 #include "Test.h" | |
robertphillips
2014/04/11 13:28:08
Header?
| |
2 | |
3 #include "SkRecording.h" | |
4 | |
5 // Minimally exercise the public SkRecording API. | |
6 | |
7 DEF_TEST(RecordingTest, r) { | |
8 EXPERIMENTAL::SkRecording* recording = EXPERIMENTAL::SkRecording::Create(192 0, 1080); | |
9 | |
10 // Some very exciting commands here. | |
11 recording->canvas()->clipRect(SkRect::MakeWH(320, 240)); | |
12 | |
13 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback( | |
14 EXPERIMENTAL::SkRecording::Delete(recording)); | |
15 | |
16 SkCanvas target; | |
17 playback->draw(&target); | |
18 } | |
OLD | NEW |