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

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

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add VDA and gpu_factories mocks. Update unittest. Created 7 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 class DBMessageFilter; 75 class DBMessageFilter;
76 class DevToolsAgentFilter; 76 class DevToolsAgentFilter;
77 class DomStorageDispatcher; 77 class DomStorageDispatcher;
78 class GpuChannelHost; 78 class GpuChannelHost;
79 class IndexedDBDispatcher; 79 class IndexedDBDispatcher;
80 class InputHandlerManager; 80 class InputHandlerManager;
81 class MediaStreamCenter; 81 class MediaStreamCenter;
82 class MediaStreamDependencyFactory; 82 class MediaStreamDependencyFactory;
83 class P2PSocketDispatcher; 83 class P2PSocketDispatcher;
84 class PeerConnectionTracker; 84 class PeerConnectionTracker;
85 class RendererGpuVideoDecoderFactories;
85 class RendererWebKitPlatformSupportImpl; 86 class RendererWebKitPlatformSupportImpl;
86 class RenderProcessObserver; 87 class RenderProcessObserver;
87 class VideoCaptureImplManager; 88 class VideoCaptureImplManager;
88 class WebDatabaseObserverImpl; 89 class WebDatabaseObserverImpl;
89 class WebGraphicsContext3DCommandBufferImpl; 90 class WebGraphicsContext3DCommandBufferImpl;
90 91
91 // The RenderThreadImpl class represents a background thread where RenderView 92 // The RenderThreadImpl class represents a background thread where RenderView
92 // instances live. The RenderThread supports an API that is used by its 93 // instances live. The RenderThread supports an API that is used by its
93 // consumer to talk indirectly to the RenderViews and supporting objects. 94 // consumer to talk indirectly to the RenderViews and supporting objects.
94 // Likewise, it provides an API for the RenderViews to talk back to the main 95 // Likewise, it provides an API for the RenderViews to talk back to the main
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Returns a MessageLoopProxy instance corresponding to the message loop 271 // Returns a MessageLoopProxy instance corresponding to the message loop
271 // of the thread on which file operations should be run. Must be called 272 // of the thread on which file operations should be run. Must be called
272 // on the renderer's main thread. 273 // on the renderer's main thread.
273 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy(); 274 scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy();
274 275
275 // Causes the idle handler to skip sending idle notifications 276 // Causes the idle handler to skip sending idle notifications
276 // on the two next scheduled calls, so idle notifications are 277 // on the two next scheduled calls, so idle notifications are
277 // not sent for at least one notification delay. 278 // not sent for at least one notification delay.
278 void PostponeIdleNotification(); 279 void PostponeIdleNotification();
279 280
281 // Gets a RendererGpuVideoDecoderFactories. Returns NULL if VDA is disabled or
282 // a graphics context cannot be obtained.
283 RendererGpuVideoDecoderFactories* GetGpuFactories();
284
280 // Returns a graphics context shared among all 285 // Returns a graphics context shared among all
281 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned 286 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned
282 // by this class and must be null-tested before each use to detect context 287 // by this class and must be null-tested before each use to detect context
283 // loss. The returned context is only valid on the compositor thread when 288 // loss. The returned context is only valid on the compositor thread when
284 // threaded compositing is enabled. 289 // threaded compositing is enabled.
285 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); 290 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D();
286 291
287 // Handle loss of the shared GpuVDAContext3D context above. 292 // Handle loss of the shared GpuVDAContext3D context above.
288 static void OnGpuVDAContextLoss(); 293 static void OnGpuVDAContextLoss();
289 294
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 470 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
466 471
467 HistogramCustomizer histogram_customizer_; 472 HistogramCustomizer histogram_customizer_;
468 473
469 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 474 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
470 }; 475 };
471 476
472 } // namespace content 477 } // namespace content
473 478
474 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 479 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698