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

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

Issue 1356463002: Revert of cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
331 // Causes the idle handler to skip sending idle notifications 328 // Causes the idle handler to skip sending idle notifications
332 // on the two next scheduled calls, so idle notifications are 329 // on the two next scheduled calls, so idle notifications are
333 // not sent for at least one notification delay. 330 // not sent for at least one notification delay.
334 void PostponeIdleNotification(); 331 void PostponeIdleNotification();
335 332
336 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); 333 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories();
337 334
338 scoped_refptr<cc_blink::ContextProviderWebContext> 335 scoped_refptr<cc_blink::ContextProviderWebContext>
339 SharedMainThreadContextProvider(); 336 SharedMainThreadContextProvider();
340 337
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 scoped_ptr<InputHandlerManager> input_handler_manager_; 582 scoped_ptr<InputHandlerManager> input_handler_manager_;
586 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; 583 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_;
587 584
588 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_; 585 scoped_refptr<BluetoothMessageFilter> bluetooth_message_filter_;
589 586
590 scoped_refptr<cc_blink::ContextProviderWebContext> 587 scoped_refptr<cc_blink::ContextProviderWebContext>
591 shared_main_thread_contexts_; 588 shared_main_thread_contexts_;
592 589
593 base::ObserverList<RenderProcessObserver> observers_; 590 base::ObserverList<RenderProcessObserver> observers_;
594 591
595 scoped_refptr<ContextProviderCommandBuffer> shared_worker_context_provider_;
596 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_; 592 scoped_refptr<ContextProviderCommandBuffer> gpu_va_context_provider_;
597 593
598 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 594 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
599 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 595 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
600 596
601 HistogramCustomizer histogram_customizer_; 597 HistogramCustomizer histogram_customizer_;
602 598
603 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 599 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
604 600
605 #if defined(ENABLE_WEBRTC) 601 #if defined(ENABLE_WEBRTC)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 657 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
662 }; 658 };
663 659
664 #if defined(COMPILER_MSVC) 660 #if defined(COMPILER_MSVC)
665 #pragma warning(pop) 661 #pragma warning(pop)
666 #endif 662 #endif
667 663
668 } // namespace content 664 } // namespace content
669 665
670 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 666 #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