From ef4d25c885cb8bea77decba5046e7f16310ee7a8 Mon Sep 17 00:00:00 2001 From: Guang Zhu Date: Tue, 27 Sep 2011 18:20:45 -0700 Subject: Use CPU upload path in DRT This makes it the same as default browser settings (for now). Otherwise the test may crash due to GPU OOM. This is to be a workaround only, and should be reverted after the bug is fixed. Bug: 5382134 Change-Id: I82a8dd83b69c8fceb657af9e32a2c5fa66ead2ce --- .../src/com/android/dumprendertree/TestShellActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 4ba2e18..945b8f2 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -916,6 +916,9 @@ public class TestShellActivity extends Activity implements LayoutTestController settings.setWorkersEnabled(false); settings.setXSSAuditorEnabled(false); settings.setPageCacheCapacity(0); + // this enables cpu upload path (as opposed to gpu upload path) + // and it's only meant to be a temporary workaround! + settings.setProperty("enable_cpu_upload_path", "true"); } private WebView mWebView; -- cgit v1.1