summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorboliu <boliu@chromium.org>2015-01-12 16:00:18 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-13 00:01:30 +0000
commita317d64ec2bf18023d63227e578e95dec216614f (patch)
treefdfacb73df94127d1acf1b8054ab01e062fda866 /android_webview
parentb9ba731a6acb79fcd6a4000e6d450a58ecf48f20 (diff)
downloadchromium_src-a317d64ec2bf18023d63227e578e95dec216614f.zip
chromium_src-a317d64ec2bf18023d63227e578e95dec216614f.tar.gz
chromium_src-a317d64ec2bf18023d63227e578e95dec216614f.tar.bz2
aw: Fix test shell flickering
This was a known problem of simulating draw functor with SurfaceView. There is no way to distinguish kModeProcess and kModeDraw with SurfaceView so they are tracked separately. Before this CL, kModeProcess would not swap a frame, but SurfaceView still expects a real draw. This CL also calls draw at the end of kModeProcess. BUG= Review URL: https://codereview.chromium.org/848673003 Cr-Commit-Position: refs/heads/master@{#311152}
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
index 2c95030..cbce4a96 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
@@ -207,7 +207,7 @@ public class AwTestContainerView extends FrameLayout {
if (process) {
DrawGL.drawGL(mDrawGL, mViewContext, width, height, 0, 0, MODE_PROCESS);
}
- if (draw) {
+ if (process || draw) {
DrawGL.drawGL(mDrawGL, mViewContext, width, height,
mCommittedScrollX, mCommittedScrollY, MODE_DRAW);
}