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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // Returns a graphics context shared among all | 265 // Returns a graphics context shared among all |
266 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned | 266 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned |
267 // by this class and must be null-tested before each use to detect context | 267 // by this class and must be null-tested before each use to detect context |
268 // loss. The returned context is only valid on the compositor thread when | 268 // loss. The returned context is only valid on the compositor thread when |
269 // threaded compositing is enabled. | 269 // threaded compositing is enabled. |
270 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); | 270 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); |
271 | 271 |
272 // Handle loss of the shared GpuVDAContext3D context above. | 272 // Handle loss of the shared GpuVDAContext3D context above. |
273 static void OnGpuVDAContextLoss(); | 273 static void OnGpuVDAContextLoss(); |
274 | 274 |
275 scoped_refptr<ContextProviderCommandBuffer> | 275 scoped_refptr<cc::ContextProvider> |
276 OffscreenContextProviderForMainThread(); | 276 OffscreenContextProviderForMainThread(); |
277 scoped_refptr<ContextProviderCommandBuffer> | 277 scoped_refptr<cc::ContextProvider> |
278 OffscreenContextProviderForCompositorThread(); | 278 OffscreenContextProviderForCompositorThread(); |
279 | 279 |
280 // AudioRendererMixerManager instance which manages renderer side mixer | 280 // AudioRendererMixerManager instance which manages renderer side mixer |
281 // instances shared based on configured audio parameters. Lazily created on | 281 // instances shared based on configured audio parameters. Lazily created on |
282 // first call. | 282 // first call. |
283 AudioRendererMixerManager* GetAudioRendererMixerManager(); | 283 AudioRendererMixerManager* GetAudioRendererMixerManager(); |
284 | 284 |
285 // AudioHardwareConfig contains audio hardware configuration for | 285 // AudioHardwareConfig contains audio hardware configuration for |
286 // renderer side clients. Creation requires a synchronous IPC call so it is | 286 // renderer side clients. Creation requires a synchronous IPC call so it is |
287 // lazily created on the first call. | 287 // lazily created on the first call. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 448 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
449 | 449 |
450 HistogramCustomizer histogram_customizer_; | 450 HistogramCustomizer histogram_customizer_; |
451 | 451 |
452 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 452 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
453 }; | 453 }; |
454 | 454 |
455 } // namespace content | 455 } // namespace content |
456 | 456 |
457 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 457 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |