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

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

Issue 1960803002: Split the media context from the compositor worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: workerthread: streams Created 4 years, 7 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
« no previous file with comments | « content/common/gpu_process_launch_causes.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu_process_launch_causes.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698