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

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

Issue 1797663002: Fixes failing instrumentation tests on Nakasi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed the comment Created 4 years, 9 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 a7586d02309356c1eaf2ff01b681258a8eccc742..2f6da47fedeb5c59f455bbcac2154d890ae4d20a 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -553,7 +553,8 @@ void RenderWidgetHostViewAndroid::LockCompositingSurface() {
}
void RenderWidgetHostViewAndroid::UnlockCompositingSurface() {
- if (!frame_evictor_->HasFrame() || locks_on_frame_count_ == 0)
+ if (!frame_evictor_->HasFrame() || locks_on_frame_count_ == 0 ||
+ !layer_.get())
no sievers 2016/03/18 00:42:15 I'm worried that this can mess up our |locks_on_fr
Jinsuk Kim 2016/03/21 04:52:35 locks_on_frame_count_ == 0 can be removed and repl
return;
DCHECK(HasValidFrame());
@@ -806,6 +807,7 @@ void RenderWidgetHostViewAndroid::RenderProcessGone(
}
void RenderWidgetHostViewAndroid::Destroy() {
+ host_->ViewDestroyed();
RemoveLayers();
SetContentViewCore(NULL);
« 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