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

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

Issue 1971023006: Add begin frame paused to android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | content/common/view_messages.h » ('j') | 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 2c0dafc7ca7e8ec9965e34ad0037d1bb11c193ce..f8cb282a5b2279726b2c2ca3c298668f2b049b3b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1431,6 +1431,10 @@ void RenderWidgetHostViewAndroid::StartObservingRootWindow() {
return;
observing_root_window_ = true;
+ if (host_) {
+ host_->Send(new ViewMsg_SetBeginFramePaused(host_->GetRoutingID(),
+ !observing_root_window_));
sunnyps 2016/05/14 00:56:02 nit: Change !observing_root_window_ to false.
+ }
content_view_core_->GetWindowAndroid()->AddObserver(this);
// Clear existing vsync requests to allow a request to the new window.
@@ -1452,6 +1456,10 @@ void RenderWidgetHostViewAndroid::StopObservingRootWindow() {
is_window_activity_started_ = true;
is_window_visible_ = true;
observing_root_window_ = false;
+ if (host_) {
+ host_->Send(new ViewMsg_SetBeginFramePaused(host_->GetRoutingID(),
+ !observing_root_window_));
sunnyps 2016/05/14 00:56:02 nit: Change !observing_root_window_ to true.
+ }
content_view_core_->GetWindowAndroid()->RemoveObserver(this);
}
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698