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

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

Issue 10636036: Enable renderer side mixing behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments! Created 8 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 | Annotate | Revision Log
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 namespace base { 47 namespace base {
48 class MessageLoopProxy; 48 class MessageLoopProxy;
49 class Thread; 49 class Thread;
50 namespace win { 50 namespace win {
51 class ScopedCOMInitializer; 51 class ScopedCOMInitializer;
52 } 52 }
53 } 53 }
54 54
55 namespace content { 55 namespace content {
56 class AudioRendererMixerManager;
56 class BrowserPluginChannelManager; 57 class BrowserPluginChannelManager;
57 class BrowserPluginRegistry; 58 class BrowserPluginRegistry;
58 class MediaStreamCenter; 59 class MediaStreamCenter;
59 class RenderProcessObserver; 60 class RenderProcessObserver;
60 } 61 }
61 62
62 namespace v8 { 63 namespace v8 {
63 class Extension; 64 class Extension;
64 } 65 }
65 66
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // not sent for at least one notification delay. 217 // not sent for at least one notification delay.
217 void PostponeIdleNotification(); 218 void PostponeIdleNotification();
218 219
219 // Returns a graphics context shared among all 220 // Returns a graphics context shared among all
220 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned 221 // RendererGpuVideoDecoderFactories, or NULL on error. Context remains owned
221 // by this class and must be null-tested before each use to detect context 222 // by this class and must be null-tested before each use to detect context
222 // loss. The returned WeakPtr<> is only valid on the compositor thread when 223 // loss. The returned WeakPtr<> is only valid on the compositor thread when
223 // threaded compositing is enabled. 224 // threaded compositing is enabled.
224 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D(); 225 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> GetGpuVDAContext3D();
225 226
227 content::AudioRendererMixerManager* audio_renderer_mixer_manager() {
228 return audio_renderer_mixer_manager_.get();
229 }
230
226 private: 231 private:
227 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 232 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
228 233
229 void Init(); 234 void Init();
230 235
231 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); 236 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level);
232 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); 237 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
233 void OnCreateNewView(const ViewMsg_New_Params& params); 238 void OnCreateNewView(const ViewMsg_New_Params& params);
234 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 239 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
235 void OnPurgePluginListCache(bool reload_pages); 240 void OnPurgePluginListCache(bool reload_pages);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 std::set<std::string> v8_extensions_; 301 std::set<std::string> v8_extensions_;
297 302
298 bool compositor_initialized_; 303 bool compositor_initialized_;
299 scoped_ptr<CompositorThread> compositor_thread_; 304 scoped_ptr<CompositorThread> compositor_thread_;
300 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; 305 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_;
301 306
302 ObserverList<content::RenderProcessObserver> observers_; 307 ObserverList<content::RenderProcessObserver> observers_;
303 308
304 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 309 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
305 310
311 // AudioRendererMixerManager instance which manages renderer side mixer
312 // instances shared based on configured audio parameters.
313 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_;
314
306 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 315 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
307 }; 316 };
308 317
309 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 318 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698