summaryrefslogtreecommitdiffstats
path: root/libs/hwui/tests/main.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-02-25 14:32:41 -0800
committerJohn Reck <jreck@google.com>2015-02-25 16:00:02 -0800
commit041b985dbb2f75aa492236d46ab47dbda8c2c74e (patch)
tree451fec12b6d3bde68dfdd11837a6e9751b4e557f /libs/hwui/tests/main.cpp
parentdf570c6e66d98536597737f863430510b6336ffe (diff)
downloadframeworks_base-041b985dbb2f75aa492236d46ab47dbda8c2c74e.zip
frameworks_base-041b985dbb2f75aa492236d46ab47dbda8c2c74e.tar.gz
frameworks_base-041b985dbb2f75aa492236d46ab47dbda8c2c74e.tar.bz2
Add null egl/gles stub support
Change-Id: I41372585202f69ef31a4ef95efc75fb7a1ff7289
Diffstat (limited to 'libs/hwui/tests/main.cpp')
-rw-r--r--libs/hwui/tests/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp
index 0431e22..bffbbef 100644
--- a/libs/hwui/tests/main.cpp
+++ b/libs/hwui/tests/main.cpp
@@ -95,16 +95,16 @@ public:
animation.createContent(width, height, renderer);
endRecording(renderer, rootNode);
- for (int i = 0; i < 150; i++) {
+ for (int i = 0; i < animation.getFrameCount(); i++) {
+#if !HWUI_NULL_GPU
testContext.waitForVsync();
+#endif
ATRACE_NAME("UI-Draw Frame");
animation.doFrame(i);
proxy->syncAndDrawFrame();
}
- sleep(5);
-
rootNode->decStrong(nullptr);
}
};