| Index: android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
|
| diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
|
| index 0566fbaa113d3fb8c65c28ec09e80a46639180c3..1588ee7878ef7177292d21a4d0b4c85c884dd1e9 100644
|
| --- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
|
| +++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestRunnerActivity.java
|
| @@ -8,6 +8,7 @@ import android.app.Activity;
|
| import android.os.Bundle;
|
| import android.view.View;
|
| import android.view.ViewGroup.LayoutParams;
|
| +import android.view.WindowManager;
|
| import android.widget.LinearLayout;
|
|
|
| /**
|
| @@ -30,6 +31,12 @@ public class AwTestRunnerActivity extends Activity {
|
| setContentView(mLinearLayout);
|
| }
|
|
|
| + public void enableHardwareAcceleration() {
|
| + getWindow().setFlags(
|
| + WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
|
| + WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
|
| + }
|
| +
|
| public int getRootLayoutWidth() {
|
| return mLinearLayout.getWidth();
|
| }
|
|
|