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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 AddFilter(notification_message_filter_.get()); 1196 AddFilter(notification_message_filter_.get());
1197 1197
1198 AddFilter(new GamepadBrowserMessageFilter()); 1198 AddFilter(new GamepadBrowserMessageFilter());
1199 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1199 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1200 AddFilter(new HistogramMessageFilter()); 1200 AddFilter(new HistogramMessageFilter());
1201 AddFilter(new MemoryMessageFilter(this)); 1201 AddFilter(new MemoryMessageFilter(this));
1202 AddFilter(new PushMessagingMessageFilter( 1202 AddFilter(new PushMessagingMessageFilter(
1203 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 1203 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
1204 #if defined(OS_ANDROID) 1204 #if defined(OS_ANDROID)
1205 AddFilter(new ScreenOrientationMessageFilterAndroid()); 1205 AddFilter(new ScreenOrientationMessageFilterAndroid());
1206 synchronous_compositor_filter_ = new SynchronousCompositorObserver(GetID());
1207 AddFilter(synchronous_compositor_filter_.get());
1206 #endif 1208 #endif
1207 } 1209 }
1208 1210
1209 void RenderProcessHostImpl::RegisterMojoInterfaces() { 1211 void RenderProcessHostImpl::RegisterMojoInterfaces() {
1210 std::unique_ptr<service_manager::InterfaceRegistry> registry( 1212 std::unique_ptr<service_manager::InterfaceRegistry> registry(
1211 new service_manager::InterfaceRegistry); 1213 new service_manager::InterfaceRegistry);
1212 1214
1213 channel_->AddAssociatedInterface( 1215 channel_->AddAssociatedInterface(
1214 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest, 1216 base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest,
1215 base::Unretained(this))); 1217 base::Unretained(this)));
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
3003 bad_message::ReceivedBadMessage(render_process_id, 3005 bad_message::ReceivedBadMessage(render_process_id,
3004 bad_message::RPH_MOJO_PROCESS_ERROR); 3006 bad_message::RPH_MOJO_PROCESS_ERROR);
3005 } 3007 }
3006 3008
3007 void RenderProcessHostImpl::CreateURLLoaderFactory( 3009 void RenderProcessHostImpl::CreateURLLoaderFactory(
3008 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { 3010 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) {
3009 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); 3011 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request));
3010 } 3012 }
3011 3013
3012 } // namespace content 3014 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/public/browser/android/synchronous_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698