| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 class DBMessageFilter; | 75 class DBMessageFilter; |
| 76 class DevToolsAgentFilter; | 76 class DevToolsAgentFilter; |
| 77 class DomStorageDispatcher; | 77 class DomStorageDispatcher; |
| 78 class GpuChannelHost; | 78 class GpuChannelHost; |
| 79 class IndexedDBDispatcher; | 79 class IndexedDBDispatcher; |
| 80 class InputHandlerManager; | 80 class InputHandlerManager; |
| 81 class MediaStreamCenter; | 81 class MediaStreamCenter; |
| 82 class MediaStreamDependencyFactory; | 82 class MediaStreamDependencyFactory; |
| 83 class P2PSocketDispatcher; | 83 class P2PSocketDispatcher; |
| 84 class PeerConnectionTracker; | 84 class PeerConnectionTracker; |
| 85 class RendererGpuVideoDecoderFactories; |
| 85 class RendererWebKitPlatformSupportImpl; | 86 class RendererWebKitPlatformSupportImpl; |
| 86 class RenderProcessObserver; | 87 class RenderProcessObserver; |
| 87 class VideoCaptureImplManager; | 88 class VideoCaptureImplManager; |
| 88 class WebDatabaseObserverImpl; | 89 class WebDatabaseObserverImpl; |
| 89 class WebGraphicsContext3DCommandBufferImpl; | 90 class WebGraphicsContext3DCommandBufferImpl; |
| 90 class WebRtcLoggingMessageFilter; | 91 class WebRtcLoggingMessageFilter; |
| 91 | 92 |
| 92 // The RenderThreadImpl class represents a background thread where RenderView | 93 // The RenderThreadImpl class represents a background thread where RenderView |
| 93 // instances live. The RenderThread supports an API that is used by its | 94 // instances live. The RenderThread supports an API that is used by its |
| 94 // consumer to talk indirectly to the RenderViews and supporting objects. | 95 // consumer to talk indirectly to the RenderViews and supporting objects. |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Returns a MessageLoopProxy instance corresponding to the message loop | 277 // Returns a MessageLoopProxy instance corresponding to the message loop |
| 277 // of the thread on which file operations should be run. Must be called | 278 // of the thread on which file operations should be run. Must be called |
| 278 // on the renderer's main thread. | 279 // on the renderer's main thread. |
| 279 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 280 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
| 280 | 281 |
| 281 // Causes the idle handler to skip sending idle notifications | 282 // Causes the idle handler to skip sending idle notifications |
| 282 // on the two next scheduled calls, so idle notifications are | 283 // on the two next scheduled calls, so idle notifications are |
| 283 // not sent for at least one notification delay. | 284 // not sent for at least one notification delay. |
| 284 void PostponeIdleNotification(); | 285 void PostponeIdleNotification(); |
| 285 | 286 |
| 287 // Gets a RendererGpuVideoDecoderFactories. Returns NULL if VDA is disabled or |
| 288 // a graphics context cannot be obtained. |
| 289 RendererGpuVideoDecoderFactories* GetGpuFactories( |
| 290 scoped_refptr<base::MessageLoopProxy> factories_loop); |
| 291 |
| 286 // Returns a graphics context shared among all | 292 // Returns a graphics context shared among all |
| 287 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned | 293 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned |
| 288 // by this class and must be null-tested before each use to detect context | 294 // by this class and must be null-tested before each use to detect context |
| 289 // loss. The returned context is only valid on the compositor thread when | 295 // loss. The returned context is only valid on the compositor thread when |
| 290 // threaded compositing is enabled. | 296 // threaded compositing is enabled. |
| 291 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); | 297 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); |
| 292 | 298 |
| 293 // Handle loss of the shared GpuVDAContext3D context above. | 299 // Handle loss of the shared GpuVDAContext3D context above. |
| 294 static void OnGpuVDAContextLoss(); | 300 static void OnGpuVDAContextLoss(); |
| 295 | 301 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 479 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
| 474 | 480 |
| 475 HistogramCustomizer histogram_customizer_; | 481 HistogramCustomizer histogram_customizer_; |
| 476 | 482 |
| 477 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 483 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 478 }; | 484 }; |
| 479 | 485 |
| 480 } // namespace content | 486 } // namespace content |
| 481 | 487 |
| 482 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 488 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |