diff options
author | Stan Iliev <stani@google.com> | 2016-07-27 17:55:43 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2016-07-28 18:23:36 -0400 |
commit | 06152cdd06da50762716cd455dcf7ab0117f25b0 (patch) | |
tree | 31e1233cbeb39f2e1268c2d4bd25b6eb149006a5 /libs/hwui/tests/macrobench/TestSceneRunner.cpp | |
parent | eadd9ca5aca0eed35f070fed6038f41e6d17ff5f (diff) |
Use Canvas::create_recording_canvas instead of RecordingCanvas ctor
Modify HWUI tests to support different recording canvases. Delete
TestCanvas class and use base Canvas class instead. Use
Canvas::create_recording_canvas to create recording canvas instances
instead of RecordingCanvas constructor.
Change-Id: I651fb9bb4add0874d7110bac467a2eb1012357fc
Diffstat (limited to 'libs/hwui/tests/macrobench/TestSceneRunner.cpp')
-rw-r--r-- | libs/hwui/tests/macrobench/TestSceneRunner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp index f03dcbf4c24c..c006d99e060c 100644 --- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp +++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp @@ -126,7 +126,7 @@ void run(const TestScene::Info& info, const TestScene::Options& opts, sp<Surface> surface = testContext.surface(); sp<RenderNode> rootNode = TestUtils::createNode(0, 0, width, height, - [&scene, width, height](RenderProperties& props, TestCanvas& canvas) { + [&scene, width, height](RenderProperties& props, Canvas& canvas) { props.setClipToBounds(false); scene->createContent(width, height, canvas); }); |