summaryrefslogtreecommitdiffstats
path: root/tests/DumpRenderTree
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2011-09-27 18:20:45 -0700
committerGuang Zhu <guangzhu@google.com>2011-09-27 18:23:10 -0700
commitef4d25c885cb8bea77decba5046e7f16310ee7a8 (patch)
tree81d962e6c10a69620c36fdc47ae19e0ece02e5a5 /tests/DumpRenderTree
parent70980383decd0d7c2928d1950482c388467785e5 (diff)
downloadframeworks_base-ef4d25c885cb8bea77decba5046e7f16310ee7a8.zip
frameworks_base-ef4d25c885cb8bea77decba5046e7f16310ee7a8.tar.gz
frameworks_base-ef4d25c885cb8bea77decba5046e7f16310ee7a8.tar.bz2
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
Diffstat (limited to 'tests/DumpRenderTree')
-rw-r--r--tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java3
1 files changed, 3 insertions, 0 deletions
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;