Index: tests/RecordingTest.cpp |
diff --git a/tests/RecordingTest.cpp b/tests/RecordingTest.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e8cdb71c6a480f7f9e9a30bd1a053d66deb60976 |
--- /dev/null |
+++ b/tests/RecordingTest.cpp |
@@ -0,0 +1,18 @@ |
+#include "Test.h" |
robertphillips
2014/04/11 13:28:08
Header?
|
+ |
+#include "SkRecording.h" |
+ |
+// Minimally exercise the public SkRecording API. |
+ |
+DEF_TEST(RecordingTest, r) { |
+ EXPERIMENTAL::SkRecording* recording = EXPERIMENTAL::SkRecording::Create(1920, 1080); |
+ |
+ // Some very exciting commands here. |
+ recording->canvas()->clipRect(SkRect::MakeWH(320, 240)); |
+ |
+ SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback( |
+ EXPERIMENTAL::SkRecording::Delete(recording)); |
+ |
+ SkCanvas target; |
+ playback->draw(&target); |
+} |