Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2125)

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java

Issue 414503004: android: Use hw acceleration in android_webview_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
index 8c9cf82ecb994b8e312d2497055eb78c01abc4b9..834b87a004e89e73096c1b508412f2ebdd3b7eb9 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
@@ -55,6 +55,9 @@ public class AwShellActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ getWindow().setFlags(
boliu 2014/08/28 23:15:06 You can change android_webview/test/shell/AndroidM
no sievers 2014/08/29 01:30:44 Done. I made it an argument to the test container
+ WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
+ WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
setContentView(R.layout.testshell_activity);
mAwTestContainerView = createAwTestContainerView();
@@ -80,7 +83,7 @@ public class AwShellActivity extends Activity {
private AwTestContainerView createAwTestContainerView() {
AwBrowserProcess.start(this);
- AwTestContainerView testContainerView = new AwTestContainerView(this);
+ AwTestContainerView testContainerView = new AwTestContainerView(this, true);
AwContentsClient awContentsClient = new NullContentsClient() {
private View mCustomView;

Powered by Google App Engine
This is Rietveld 408576698