c4b21e6c03
BUG=skia: R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/235253002 git-svn-id: http://skia.googlecode.com/svn/trunk@14158 2bbb7eff-a529-9590-31e7-b0007b416f81
26 lines
632 B
C++
26 lines
632 B
C++
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "Test.h"
|
|
|
|
#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);
|
|
}
|