Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: tests/RecordingTest.cpp

Issue 233053005: Add a focused public API for src/record. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: wrap in EXPERIMENTAL Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/record/SkRecording.cpp ('K') | « src/record/SkRecording.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« src/record/SkRecording.cpp ('K') | « src/record/SkRecording.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698