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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « content/renderer/render_thread_impl.h ('k') | content/test/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 8566532a3d7fbe72e48ec3e7d24f447388531539..d0db1a883d8f13480af5173c50c68a8393061fc0 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -75,6 +75,8 @@
#include "content/renderer/dom_storage/dom_storage_dispatcher.h"
#include "content/renderer/dom_storage/webstoragearea_impl.h"
#include "content/renderer/dom_storage/webstoragenamespace_impl.h"
+#include "content/renderer/gpu/compositor_external_begin_frame_source.h"
+#include "content/renderer/gpu/compositor_forwarding_message_filter.h"
#include "content/renderer/gpu/compositor_output_surface.h"
#include "content/renderer/input/input_event_filter.h"
#include "content/renderer/input/input_handler_manager.h"
@@ -98,7 +100,6 @@
#include "content/renderer/service_worker/embedded_worker_dispatcher.h"
#include "content/renderer/shared_worker/embedded_shared_worker_stub.h"
#include "ipc/ipc_channel_handle.h"
-#include "ipc/ipc_forwarding_message_filter.h"
#include "ipc/ipc_platform_file.h"
#include "ipc/mojo/ipc_channel_mojo.h"
#include "media/base/audio_hardware_config.h"
@@ -636,9 +637,9 @@ void RenderThreadImpl::Shutdown() {
if (file_thread_)
file_thread_->Stop();
- if (compositor_output_surface_filter_.get()) {
- RemoveFilter(compositor_output_surface_filter_.get());
- compositor_output_surface_filter_ = NULL;
+ if (compositor_message_filter_.get()) {
+ RemoveFilter(compositor_message_filter_.get());
+ compositor_message_filter_ = NULL;
}
media_thread_.reset();
@@ -902,15 +903,15 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
input_handler_manager_client));
}
- scoped_refptr<base::MessageLoopProxy> output_surface_loop;
+ scoped_refptr<base::MessageLoopProxy> compositor_impl_side_loop;
if (enable)
- output_surface_loop = compositor_message_loop_proxy_;
+ compositor_impl_side_loop = compositor_message_loop_proxy_;
else
- output_surface_loop = base::MessageLoopProxy::current();
+ compositor_impl_side_loop = base::MessageLoopProxy::current();
- compositor_output_surface_filter_ =
- CompositorOutputSurface::CreateFilter(output_surface_loop.get());
- AddFilter(compositor_output_surface_filter_.get());
+ compositor_message_filter_ = new CompositorForwardingMessageFilter(
+ compositor_impl_side_loop.get());
+ AddFilter(compositor_message_filter_.get());
RenderThreadImpl::RegisterSchemes();
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698