| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); | 333 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); |
| 334 | 334 |
| 335 // Returns a SingleThreadTaskRunner instance corresponding to the message loop | 335 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
| 336 // of the thread on which media operations should be run. Must be called | 336 // of the thread on which media operations should be run. Must be called |
| 337 // on the renderer's main thread. | 337 // on the renderer's main thread. |
| 338 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); | 338 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); |
| 339 | 339 |
| 340 // A TaskRunner instance that runs tasks on the raster worker pool. | 340 // A TaskRunner instance that runs tasks on the raster worker pool. |
| 341 base::TaskRunner* GetWorkerTaskRunner(); | 341 base::TaskRunner* GetWorkerTaskRunner(); |
| 342 | 342 |
| 343 // Returns a shared worker context provider that can be used on any thread. | 343 // Returns a worker context provider that will be bound on the compositor |
| 344 scoped_refptr<ContextProviderCommandBuffer> SharedWorkerContextProvider(); | 344 // thread. |
| 345 scoped_refptr<ContextProviderCommandBuffer> |
| 346 SharedCompositorWorkerContextProvider(); |
| 345 | 347 |
| 346 // Causes the idle handler to skip sending idle notifications | 348 // Causes the idle handler to skip sending idle notifications |
| 347 // on the two next scheduled calls, so idle notifications are | 349 // on the two next scheduled calls, so idle notifications are |
| 348 // not sent for at least one notification delay. | 350 // not sent for at least one notification delay. |
| 349 void PostponeIdleNotification(); | 351 void PostponeIdleNotification(); |
| 350 | 352 |
| 351 media::GpuVideoAcceleratorFactories* GetGpuFactories(); | 353 media::GpuVideoAcceleratorFactories* GetGpuFactories(); |
| 352 | 354 |
| 353 scoped_refptr<ContextProviderCommandBuffer> SharedMainThreadContextProvider(); | 355 scoped_refptr<ContextProviderCommandBuffer> SharedMainThreadContextProvider(); |
| 354 | 356 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 706 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 705 }; | 707 }; |
| 706 | 708 |
| 707 #if defined(COMPILER_MSVC) | 709 #if defined(COMPILER_MSVC) |
| 708 #pragma warning(pop) | 710 #pragma warning(pop) |
| 709 #endif | 711 #endif |
| 710 | 712 |
| 711 } // namespace content | 713 } // namespace content |
| 712 | 714 |
| 713 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 715 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |