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

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

Issue 493053004: [Android] Allow redundant |StartObservingRootWindow()| calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make boliu@ happy 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 7c8d13ddcd69ff05f9ba0a25649f7bd9007601fa..4c07536dc2dd1da63897cb63f687f0830b8c553e 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1264,7 +1264,9 @@ void RenderWidgetHostViewAndroid::RequestVSyncUpdate(uint32 requests) {
void RenderWidgetHostViewAndroid::StartObservingRootWindow() {
DCHECK(content_view_core_);
- DCHECK(!observing_root_window_);
+ if (observing_root_window_)
+ return;
+
observing_root_window_ = true;
content_view_core_->GetWindowAndroid()->AddObserver(this);
« 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