summaryrefslogtreecommitdiff
path: root/libs/hwui/tests/macrobench/TestSceneRunner.cpp
diff options
context:
space:
mode:
authorStan Iliev <stani@google.com>2016-07-27 17:55:43 -0400
committerStan Iliev <stani@google.com>2016-07-28 18:23:36 -0400
commit06152cdd06da50762716cd455dcf7ab0117f25b0 (patch)
tree31e1233cbeb39f2e1268c2d4bd25b6eb149006a5 /libs/hwui/tests/macrobench/TestSceneRunner.cpp
parenteadd9ca5aca0eed35f070fed6038f41e6d17ff5f (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.cpp2
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);
});