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

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

Powered by Google App Engine
This is Rietveld 408576698