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

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

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the rest of sievers@ input Created 5 years, 9 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #include "content/renderer/render_process_impl.h" 102 #include "content/renderer/render_process_impl.h"
103 #include "content/renderer/render_view_impl.h" 103 #include "content/renderer/render_view_impl.h"
104 #include "content/renderer/renderer_blink_platform_impl.h" 104 #include "content/renderer/renderer_blink_platform_impl.h"
105 #include "content/renderer/scheduler/renderer_scheduler.h" 105 #include "content/renderer/scheduler/renderer_scheduler.h"
106 #include "content/renderer/scheduler/resource_dispatch_throttler.h" 106 #include "content/renderer/scheduler/resource_dispatch_throttler.h"
107 #include "content/renderer/service_worker/cache_storage_message_filter.h" 107 #include "content/renderer/service_worker/cache_storage_message_filter.h"
108 #include "content/renderer/service_worker/embedded_worker_context_message_filter .h" 108 #include "content/renderer/service_worker/embedded_worker_context_message_filter .h"
109 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" 109 #include "content/renderer/service_worker/embedded_worker_dispatcher.h"
110 #include "content/renderer/service_worker/service_worker_cache_storage_dispatche r.h" 110 #include "content/renderer/service_worker/service_worker_cache_storage_dispatche r.h"
111 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" 111 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h"
112 #include "content/renderer/vr_dispatcher.h"
112 #include "gin/public/debug.h" 113 #include "gin/public/debug.h"
113 #include "gpu/GLES2/gl2extchromium.h" 114 #include "gpu/GLES2/gl2extchromium.h"
114 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 115 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
115 #include "ipc/ipc_channel_handle.h" 116 #include "ipc/ipc_channel_handle.h"
116 #include "ipc/ipc_platform_file.h" 117 #include "ipc/ipc_platform_file.h"
117 #include "ipc/mojo/ipc_channel_mojo.h" 118 #include "ipc/mojo/ipc_channel_mojo.h"
118 #include "media/base/audio_hardware_config.h" 119 #include "media/base/audio_hardware_config.h"
119 #include "media/base/media.h" 120 #include "media/base/media.h"
120 #include "media/renderers/gpu_video_accelerator_factories.h" 121 #include "media/renderers/gpu_video_accelerator_factories.h"
121 #include "mojo/common/common_type_converters.h" 122 #include "mojo/common/common_type_converters.h"
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 549
549 midi_message_filter_ = new MidiMessageFilter(GetIOMessageLoopProxy()); 550 midi_message_filter_ = new MidiMessageFilter(GetIOMessageLoopProxy());
550 AddFilter(midi_message_filter_.get()); 551 AddFilter(midi_message_filter_.get());
551 552
552 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter()); 553 AddFilter((new IndexedDBMessageFilter(thread_safe_sender()))->GetFilter());
553 554
554 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter()); 555 AddFilter((new CacheStorageMessageFilter(thread_safe_sender()))->GetFilter());
555 556
556 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); 557 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter());
557 558
559 vr_dispatcher_.reset(new VRDispatcher());
560
558 GetContentClient()->renderer()->RenderThreadStarted(); 561 GetContentClient()->renderer()->RenderThreadStarted();
559 562
560 InitSkiaEventTracer(); 563 InitSkiaEventTracer();
561 564
562 const base::CommandLine& command_line = 565 const base::CommandLine& command_line =
563 *base::CommandLine::ForCurrentProcess(); 566 *base::CommandLine::ForCurrentProcess();
564 567
565 is_impl_side_painting_enabled_ = 568 is_impl_side_painting_enabled_ =
566 !command_line.HasSwitch(switches::kDisableImplSidePainting); 569 !command_line.HasSwitch(switches::kDisableImplSidePainting);
567 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( 570 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled(
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 } 1856 }
1854 1857
1855 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 1858 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
1856 size_t erased = 1859 size_t erased =
1857 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 1860 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
1858 routing_id_); 1861 routing_id_);
1859 DCHECK_EQ(1u, erased); 1862 DCHECK_EQ(1u, erased);
1860 } 1863 }
1861 1864
1862 } // namespace content 1865 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698