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

Unified Diff: android_webview/browser/render_thread_manager.cc

Issue 1943963003: WIP Handle AwContents needing multiple live functors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from PS17 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 | « android_webview/browser/compositor_frame_producer.h ('k') | android_webview/browser/test/fake_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/render_thread_manager.cc
diff --git a/android_webview/browser/render_thread_manager.cc b/android_webview/browser/render_thread_manager.cc
index c2c9c6e0eecc061fed1b4402ff9eb6b765abe6b9..1bb44aa75c313e4fedabc107a41e9beb2e01e4dc 100644
--- a/android_webview/browser/render_thread_manager.cc
+++ b/android_webview/browser/render_thread_manager.cc
@@ -106,7 +106,7 @@ RenderThreadManager::RenderThreadManager(
RenderThreadManager::~RenderThreadManager() {
DCHECK(ui_loop_->BelongsToCurrentThread());
if (compositor_frame_producer_) {
- compositor_frame_producer_->OnCompositorFrameConsumerWillDestroy();
+ compositor_frame_producer_->RemoveCompositorFrameConsumer(this);
}
DCHECK(!hardware_renderer_.get());
}
@@ -158,7 +158,7 @@ void RenderThreadManager::ClientRequestInvokeGLOnUI() {
void RenderThreadManager::UpdateParentDrawConstraintsOnUI() {
DCHECK(ui_loop_->BelongsToCurrentThread());
if (compositor_frame_producer_) {
- compositor_frame_producer_->OnParentDrawConstraintsUpdated();
+ compositor_frame_producer_->OnParentDrawConstraintsUpdated(this);
}
}
@@ -362,6 +362,9 @@ void RenderThreadManager::DeleteHardwareRendererOnUI() {
void RenderThreadManager::SetCompositorFrameProducer(
CompositorFrameProducer* compositor_frame_producer) {
+ DCHECK(compositor_frame_producer == compositor_frame_producer_ ||
+ compositor_frame_producer_ == nullptr ||
+ compositor_frame_producer == nullptr);
compositor_frame_producer_ = compositor_frame_producer;
}
« no previous file with comments | « android_webview/browser/compositor_frame_producer.h ('k') | android_webview/browser/test/fake_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698