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

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: shutdown fix 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
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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 scoped_ptr<InputHandlerManager> input_handler_manager_; 585 scoped_ptr<InputHandlerManager> input_handler_manager_;
583 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; 586 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_;
584 587
585 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_; 588 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_;
586 589
587 scoped_refptr<cc_blink::ContextProviderWebContext> 590 scoped_refptr<cc_blink::ContextProviderWebContext>
588 shared_main_thread_contexts_; 591 shared_main_thread_contexts_;
589 592
590 base::ObserverList<RenderProcessObserver> observers_; 593 base::ObserverList<RenderProcessObserver> observers_;
591 594
595 scoped_refptr<ContextProviderCommandBuffer> shared_worker_context_provider_;
592 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; 596 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_;
593 597
594 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 598 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
595 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 599 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
596 600
597 HistogramCustomizer histogram_customizer_; 601 HistogramCustomizer histogram_customizer_;
598 602
599 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 603 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
600 604
601 #if defined(ENABLE_WEBRTC) 605 #if defined(ENABLE_WEBRTC)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 661 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
658 }; 662 };
659 663
660 #if defined(COMPILER_MSVC) 664 #if defined(COMPILER_MSVC)
661 #pragma warning(pop) 665 #pragma warning(pop)
662 #endif 666 #endif
663 667
664 } // namespace content 668 } // namespace content
665 669
666 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 670 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698