Skip to content

Commit ef4d25c

Browse files
committed
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
1 parent 7098038 commit ef4d25c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ public void setDefaultWebSettings(WebView webview) {
916916
settings.setWorkersEnabled(false);
917917
settings.setXSSAuditorEnabled(false);
918918
settings.setPageCacheCapacity(0);
919+
// this enables cpu upload path (as opposed to gpu upload path)
920+
// and it's only meant to be a temporary workaround!
921+
settings.setProperty("enable_cpu_upload_path", "true");
919922
}
920923

921924
private WebView mWebView;

0 commit comments

Comments
 (0)