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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 // Get the GPU channel. Returns NULL if the channel is not established or | 291 // Get the GPU channel. Returns NULL if the channel is not established or |
292 // has been lost. | 292 // has been lost. |
293 GpuChannelHost* GetGpuChannel(); | 293 GpuChannelHost* GetGpuChannel(); |
294 | 294 |
295 // Returns a MessageLoopProxy instance corresponding to the message loop | 295 // Returns a MessageLoopProxy instance corresponding to the message loop |
296 // of the thread on which file operations should be run. Must be called | 296 // of the thread on which file operations should be run. Must be called |
297 // on the renderer's main thread. | 297 // on the renderer's main thread. |
298 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); | 298 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); |
299 | 299 |
300 // Returns a MessageLoopProxy instance corresponding to the message loop | 300 // Returns a SingleThreadTaskRunner instance corresponding to the message loop |
301 // of the thread on which media operations should be run. Must be called | 301 // of the thread on which media operations should be run. Must be called |
302 // on the renderer's main thread. | 302 // on the renderer's main thread. |
303 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy(); | 303 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); |
304 | 304 |
305 // Causes the idle handler to skip sending idle notifications | 305 // Causes the idle handler to skip sending idle notifications |
306 // on the two next scheduled calls, so idle notifications are | 306 // on the two next scheduled calls, so idle notifications are |
307 // not sent for at least one notification delay. | 307 // not sent for at least one notification delay. |
308 void PostponeIdleNotification(); | 308 void PostponeIdleNotification(); |
309 | 309 |
310 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); | 310 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); |
311 | 311 |
312 scoped_refptr<webkit::gpu::ContextProviderWebContext> | 312 scoped_refptr<webkit::gpu::ContextProviderWebContext> |
313 SharedMainThreadContextProvider(); | 313 SharedMainThreadContextProvider(); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 bool is_one_copy_enabled_; | 578 bool is_one_copy_enabled_; |
579 | 579 |
580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
581 | 581 |
582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
583 }; | 583 }; |
584 | 584 |
585 } // namespace content | 585 } // namespace content |
586 | 586 |
587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |