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

Unified Diff: content/renderer/render_thread.cc

Issue 8089002: Input event filtering and compositor thread setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « content/renderer/render_thread.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread.cc
===================================================================
--- content/renderer/render_thread.cc (revision 104238)
+++ content/renderer/render_thread.cc (working copy)
@@ -37,6 +37,7 @@
#include "content/public/renderer/render_process_observer.h"
#include "content/public/renderer/render_view_visitor.h"
#include "content/renderer/devtools_agent_filter.h"
+#include "content/renderer/gpu/compositor_thread.h"
#include "content/renderer/gpu/gpu_channel_host.h"
#include "content/renderer/indexed_db_dispatcher.h"
#include "content/renderer/media/audio_input_message_filter.h"
@@ -239,6 +240,11 @@
if (file_thread_.get())
file_thread_->Stop();
+ if (compositor_thread_.get()) {
+ RemoveFilter(compositor_thread_->GetMessageFilter());
+ compositor_thread_.reset();
+ }
+
if (webkit_platform_support_.get())
WebKit::shutdown();
@@ -439,6 +445,9 @@
webkit_platform_support_.reset(new RendererWebKitPlatformSupportImpl);
WebKit::initialize(webkit_platform_support_.get());
+ compositor_thread_.reset(new CompositorThread(this));
+ AddFilter(compositor_thread_->GetMessageFilter());
+
WebScriptController::enableV8SingleThreadMode();
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
« no previous file with comments | « content/renderer/render_thread.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698