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

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

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayerTreeHostClientTakeAwayOutputSurface test. Content provider is always destroyed on the clie… Created 5 years, 3 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
« no previous file with comments | « content/renderer/gpu/mailbox_output_surface.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); 318 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy();
319 319
320 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 320 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
321 // of the thread on which media operations should be run. Must be called 321 // of the thread on which media operations should be run. Must be called
322 // on the renderer's main thread. 322 // on the renderer's main thread.
323 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); 323 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner();
324 324
325 // A TaskRunner instance that runs tasks on the raster worker pool. 325 // A TaskRunner instance that runs tasks on the raster worker pool.
326 base::TaskRunner* GetWorkerTaskRunner(); 326 base::TaskRunner* GetWorkerTaskRunner();
327 327
328 // Returns a shared worker context provider that can be used on any thread.
329 scoped_refptr<ContextProviderCommandBuffer> SharedWorkerContextProvider();
330
328 // Causes the idle handler to skip sending idle notifications 331 // Causes the idle handler to skip sending idle notifications
329 // on the two next scheduled calls, so idle notifications are 332 // on the two next scheduled calls, so idle notifications are
330 // not sent for at least one notification delay. 333 // not sent for at least one notification delay.
331 void PostponeIdleNotification(); 334 void PostponeIdleNotification();
332 335
333 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); 336 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories();
334 337
335 scoped_refptr<cc_blink::ContextProviderWebContext> 338 scoped_refptr<cc_blink::ContextProviderWebContext>
336 SharedMainThreadContextProvider(); 339 SharedMainThreadContextProvider();
337 340
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 scoped_ptr<InputHandlerManager> input_handler_manager_; 587 scoped_ptr<InputHandlerManager> input_handler_manager_;
585 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; 588 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_;
586 589
587 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_; 590 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_;
588 591
589 scoped_refptr<cc_blink::ContextProviderWebContext> 592 scoped_refptr<cc_blink::ContextProviderWebContext>
590 shared_main_thread_contexts_; 593 shared_main_thread_contexts_;
591 594
592 base::ObserverList<RenderProcessObserver> observers_; 595 base::ObserverList<RenderProcessObserver> observers_;
593 596
597 scoped_refptr<ContextProviderCommandBuffer> shared_worker_context_provider_;
594 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; 598 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_;
595 599
596 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 600 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
597 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 601 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
598 602
599 HistogramCustomizer histogram_customizer_; 603 HistogramCustomizer histogram_customizer_;
600 604
601 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 605 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
602 606
603 #if defined(ENABLE_WEBRTC) 607 #if defined(ENABLE_WEBRTC)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 663 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
660 }; 664 };
661 665
662 #if defined(COMPILER_MSVC) 666 #if defined(COMPILER_MSVC)
663 #pragma warning(pop) 667 #pragma warning(pop)
664 #endif 668 #endif
665 669
666 } // namespace content 670 } // namespace content
667 671
668 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 672 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/mailbox_output_surface.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698