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

Side by Side Diff: tests/RecordingTest.cpp

Issue 235253002: Mark our territory with (C). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « tests/RecorderTest.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
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
1 #include "Test.h" 8 #include "Test.h"
2 9
3 #include "SkRecording.h" 10 #include "SkRecording.h"
4 11
5 // Minimally exercise the public SkRecording API. 12 // Minimally exercise the public SkRecording API.
6 13
7 DEF_TEST(RecordingTest, r) { 14 DEF_TEST(RecordingTest, r) {
8 EXPERIMENTAL::SkRecording* recording = EXPERIMENTAL::SkRecording::Create(192 0, 1080); 15 EXPERIMENTAL::SkRecording* recording = EXPERIMENTAL::SkRecording::Create(192 0, 1080);
9 16
10 // Some very exciting commands here. 17 // Some very exciting commands here.
11 recording->canvas()->clipRect(SkRect::MakeWH(320, 240)); 18 recording->canvas()->clipRect(SkRect::MakeWH(320, 240));
12 19
13 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback( 20 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(
14 EXPERIMENTAL::SkRecording::Delete(recording)); 21 EXPERIMENTAL::SkRecording::Delete(recording));
15 22
16 SkCanvas target; 23 SkCanvas target;
17 playback->draw(&target); 24 playback->draw(&target);
18 } 25 }
OLDNEW
« no previous file with comments | « tests/RecorderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698