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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 886153003: Reorganize ChannelMojo related flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "content/common/gpu/client/gpu_channel_host.h" 63 #include "content/common/gpu/client/gpu_channel_host.h"
64 #include "content/common/gpu/gpu_messages.h" 64 #include "content/common/gpu/gpu_messages.h"
65 #include "content/common/gpu/gpu_process_launch_causes.h" 65 #include "content/common/gpu/gpu_process_launch_causes.h"
66 #include "content/common/render_frame_setup.mojom.h" 66 #include "content/common/render_frame_setup.mojom.h"
67 #include "content/common/resource_messages.h" 67 #include "content/common/resource_messages.h"
68 #include "content/common/view_messages.h" 68 #include "content/common/view_messages.h"
69 #include "content/common/worker_messages.h" 69 #include "content/common/worker_messages.h"
70 #include "content/public/common/content_constants.h" 70 #include "content/public/common/content_constants.h"
71 #include "content/public/common/content_paths.h" 71 #include "content/public/common/content_paths.h"
72 #include "content/public/common/content_switches.h" 72 #include "content/public/common/content_switches.h"
73 #include "content/public/common/mojo_channel_switches.h"
73 #include "content/public/common/renderer_preferences.h" 74 #include "content/public/common/renderer_preferences.h"
74 #include "content/public/common/url_constants.h" 75 #include "content/public/common/url_constants.h"
75 #include "content/public/renderer/content_renderer_client.h" 76 #include "content/public/renderer/content_renderer_client.h"
76 #include "content/public/renderer/render_process_observer.h" 77 #include "content/public/renderer/render_process_observer.h"
77 #include "content/public/renderer/render_view_visitor.h" 78 #include "content/public/renderer/render_view_visitor.h"
78 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 79 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
79 #include "content/renderer/devtools/devtools_agent_filter.h" 80 #include "content/renderer/devtools/devtools_agent_filter.h"
80 #include "content/renderer/devtools/v8_sampling_profiler.h" 81 #include "content/renderer/devtools/v8_sampling_profiler.h"
81 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" 82 #include "content/renderer/dom_storage/dom_storage_dispatcher.h"
82 #include "content/renderer/dom_storage/webstoragearea_impl.h" 83 #include "content/renderer/dom_storage/webstoragearea_impl.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 338 }
338 339
339 private: 340 private:
340 int32_t routing_id_highmark_; 341 int32_t routing_id_highmark_;
341 }; 342 };
342 343
343 void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) { 344 void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) {
344 mojo::BindToRequest(new RenderFrameSetupImpl(), &request); 345 mojo::BindToRequest(new RenderFrameSetupImpl(), &request);
345 } 346 }
346 347
347 bool ShouldUseMojoChannel() {
348 return base::CommandLine::ForCurrentProcess()->HasSwitch(
349 switches::kEnableRendererMojoChannel) ||
350 IPC::ChannelMojo::ShouldBeUsed();
351 }
352
353 blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() { 348 blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() {
354 blink::WebGraphicsContext3D::Attributes attributes; 349 blink::WebGraphicsContext3D::Attributes attributes;
355 attributes.shareResources = true; 350 attributes.shareResources = true;
356 attributes.depth = false; 351 attributes.depth = false;
357 attributes.stencil = false; 352 attributes.stencil = false;
358 attributes.antialias = false; 353 attributes.antialias = false;
359 attributes.noAutomaticFlushes = true; 354 attributes.noAutomaticFlushes = true;
360 return attributes; 355 return attributes;
361 } 356 }
362 357
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 mojo::InterfaceRequest<mojo::ServiceProvider> services, 1804 mojo::InterfaceRequest<mojo::ServiceProvider> services,
1810 mojo::ServiceProviderPtr exposed_services) 1805 mojo::ServiceProviderPtr exposed_services)
1811 : services(services.Pass()), 1806 : services(services.Pass()),
1812 exposed_services(exposed_services.Pass()) { 1807 exposed_services(exposed_services.Pass()) {
1813 } 1808 }
1814 1809
1815 RenderThreadImpl::PendingRenderFrameConnect::~PendingRenderFrameConnect() { 1810 RenderThreadImpl::PendingRenderFrameConnect::~PendingRenderFrameConnect() {
1816 } 1811 }
1817 1812
1818 } // namespace content 1813 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698