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

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

Issue 1211153002: Expose a SequencedTaskRunner that runs tasks on raster threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 310 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
311 // of the thread on which file operations should be run. Must be called 311 // of the thread on which file operations should be run. Must be called
312 // on the renderer's main thread. 312 // on the renderer's main thread.
313 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy(); 313 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadMessageLoopProxy();
314 314
315 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 315 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
316 // of the thread on which media operations should be run. Must be called 316 // of the thread on which media operations should be run. Must be called
317 // on the renderer's main thread. 317 // on the renderer's main thread.
318 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner(); 318 scoped_refptr<base::SingleThreadTaskRunner> GetMediaThreadTaskRunner();
319 319
320 // Returns a SequencedTaskRunner instance that runs tasks on worker
321 // |compositor_raster_threads_|.
322 scoped_refptr<base::SequencedTaskRunner> GetWorkerSequencedTaskRunner();
323
320 // Causes the idle handler to skip sending idle notifications 324 // Causes the idle handler to skip sending idle notifications
321 // on the two next scheduled calls, so idle notifications are 325 // on the two next scheduled calls, so idle notifications are
322 // not sent for at least one notification delay. 326 // not sent for at least one notification delay.
323 void PostponeIdleNotification(); 327 void PostponeIdleNotification();
324 328
325 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); 329 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories();
326 330
327 scoped_refptr<cc_blink::ContextProviderWebContext> 331 scoped_refptr<cc_blink::ContextProviderWebContext>
328 SharedMainThreadContextProvider(); 332 SharedMainThreadContextProvider();
329 333
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // Thread for running multimedia operations (e.g., video decoding). 563 // Thread for running multimedia operations (e.g., video decoding).
560 scoped_ptr<base::Thread> media_thread_; 564 scoped_ptr<base::Thread> media_thread_;
561 565
562 // Will point to appropriate task runner after initialization, 566 // Will point to appropriate task runner after initialization,
563 // regardless of whether |compositor_thread_| is overriden. 567 // regardless of whether |compositor_thread_| is overriden.
564 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 568 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
565 569
566 // Threads used by compositor for rasterization. 570 // Threads used by compositor for rasterization.
567 ScopedVector<base::SimpleThread> compositor_raster_threads_; 571 ScopedVector<base::SimpleThread> compositor_raster_threads_;
568 572
573 // Task runner that runs tasks on |compositor_raster_threads_|.
574 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
575
569 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_; 576 base::CancelableCallback<void(const IPC::Message&)> main_input_callback_;
570 scoped_refptr<IPC::MessageFilter> input_event_filter_; 577 scoped_refptr<IPC::MessageFilter> input_event_filter_;
571 scoped_ptr<InputHandlerManager> input_handler_manager_; 578 scoped_ptr<InputHandlerManager> input_handler_manager_;
572 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_; 579 scoped_refptr<CompositorForwardingMessageFilter> compositor_message_filter_;
573 580
574 scoped_refptr<cc_blink::ContextProviderWebContext> 581 scoped_refptr<cc_blink::ContextProviderWebContext>
575 shared_main_thread_contexts_; 582 shared_main_thread_contexts_;
576 583
577 base::ObserverList<RenderProcessObserver> observers_; 584 base::ObserverList<RenderProcessObserver> observers_;
578 585
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 651 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
645 }; 652 };
646 653
647 #if defined(COMPILER_MSVC) 654 #if defined(COMPILER_MSVC)
648 #pragma warning(pop) 655 #pragma warning(pop)
649 #endif 656 #endif
650 657
651 } // namespace content 658 } // namespace content
652 659
653 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 660 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698