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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 457913002: Android WebView: flush input events during onVSync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 19b64c6f5043fcfa27550f8a4529401dd24284a6..e2034513f6f6f80be14ffe45130f029547a65551 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -258,7 +258,7 @@ void RenderWidgetHostViewAndroid::WasShown() {
host_->WasShown();
- if (content_view_core_ && !using_synchronous_compositor_) {
+ if (content_view_core_) {
hush (inactive) 2014/08/09 03:28:12 btw, WasShown() is not called when you use Aw Test
boliu 2014/08/11 15:57:47 Should be called in aw shell from here: https://co
content_view_core_->GetWindowAndroid()->AddObserver(this);
content_view_core_->GetWindowAndroid()->RequestVSyncUpdate();
observing_root_window_ = true;
@@ -275,7 +275,7 @@ void RenderWidgetHostViewAndroid::WasHidden() {
// utilization.
host_->WasHidden();
- if (content_view_core_ && !using_synchronous_compositor_) {
+ if (content_view_core_) {
content_view_core_->GetWindowAndroid()->RemoveObserver(this);
observing_root_window_ = false;
}
@@ -1440,12 +1440,10 @@ void RenderWidgetHostViewAndroid::SetContentViewCore(
if (!content_view_core_)
return;
- if (!using_synchronous_compositor_) {
- content_view_core_->GetWindowAndroid()->AddObserver(this);
- observing_root_window_ = true;
- if (needs_begin_frame_)
- content_view_core_->GetWindowAndroid()->RequestVSyncUpdate();
- }
+ content_view_core_->GetWindowAndroid()->AddObserver(this);
+ observing_root_window_ = true;
+ if (needs_begin_frame_)
+ content_view_core_->GetWindowAndroid()->RequestVSyncUpdate();
if (resize)
WasResized();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698