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

Side by Side 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 unified diff | Download patch
« src/record/SkRecording.cpp ('K') | « src/record/SkRecording.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« 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