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

Side by Side Diff: tests/RecordingTest.cpp

Issue 660903002: Remove obsolete SkRecording. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 6 years, 2 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 | « src/core/SkRecording.cpp ('k') | tests/RecordingXfermodeTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
8 #include "Test.h"
9
10 #include "../include/record/SkRecording.h"
11
12 // Minimally exercise the public SkRecording API.
13
14 DEF_TEST(SkRecording, r) {
15 EXPERIMENTAL::SkRecording recording(1920, 1080);
16
17 // Some very exciting commands here.
18 recording.canvas()->clipRect(SkRect::MakeWH(320, 240));
19
20 SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(recording.releasePlay back());
21
22 SkCanvas target;
23 playback->draw(&target);
24
25 // Here's another recording we never call releasePlayback().
26 // However pointless, this should be safe.
27 EXPERIMENTAL::SkRecording pointless(1920, 1080);
28 pointless.canvas()->clipRect(SkRect::MakeWH(320, 240));
29 }
OLDNEW
« no previous file with comments | « src/core/SkRecording.cpp ('k') | tests/RecordingXfermodeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698