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

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: Renderer Side Mixing! 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>
11 11
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/child_process.h" 16 #include "content/common/child_process.h"
17 #include "content/common/child_thread.h" 17 #include "content/common/child_thread.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/common/css_colors.h" 19 #include "content/common/css_colors.h"
20 #include "content/common/gpu/client/gpu_channel_host.h" 20 #include "content/common/gpu/client/gpu_channel_host.h"
21 #include "content/common/gpu/gpu_process_launch_causes.h" 21 #include "content/common/gpu/gpu_process_launch_causes.h"
22 #include "content/public/renderer/render_thread.h" 22 #include "content/public/renderer/render_thread.h"
23 #include "ipc/ipc_channel_proxy.h" 23 #include "ipc/ipc_channel_proxy.h"
24 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
25 25
26 class AppCacheDispatcher; 26 class AppCacheDispatcher;
27 class AudioInputMessageFilter; 27 class AudioInputMessageFilter;
28 class AudioMessageFilter; 28 class AudioMessageFilter;
29 class AudioRendererMixerManager;
29 class CompositorThread; 30 class CompositorThread;
30 class DBMessageFilter; 31 class DBMessageFilter;
31 class DevToolsAgentFilter; 32 class DevToolsAgentFilter;
32 class DomStorageDispatcher; 33 class DomStorageDispatcher;
33 class GpuChannelHost; 34 class GpuChannelHost;
34 class IndexedDBDispatcher; 35 class IndexedDBDispatcher;
35 class RendererWebKitPlatformSupportImpl; 36 class RendererWebKitPlatformSupportImpl;
36 class SkBitmap; 37 class SkBitmap;
37 class VideoCaptureImplManager; 38 class VideoCaptureImplManager;
38 struct ViewMsg_New_Params; 39 struct ViewMsg_New_Params;
(...skipping 177 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 // Return an AudioRendererMixerManager instance which manages renderer side
jam 2012/07/13 15:19:42 nit: for simple getters like this, the documentati
DaleCurtis 2012/07/13 21:28:33 Done.
228 // mixer instances shared based on configured audio parameters.
229 AudioRendererMixerManager* audio_renderer_mixer_manager() {
230 return audio_renderer_mixer_manager_.get();
231 }
232
226 private: 233 private:
227 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 234 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
228 235
229 void Init(); 236 void Init();
230 237
231 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); 238 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level);
232 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); 239 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
233 void OnCreateNewView(const ViewMsg_New_Params& params); 240 void OnCreateNewView(const ViewMsg_New_Params& params);
234 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 241 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
235 void OnPurgePluginListCache(bool reload_pages); 242 void OnPurgePluginListCache(bool reload_pages);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 std::set<std::string> v8_extensions_; 303 std::set<std::string> v8_extensions_;
297 304
298 bool compositor_initialized_; 305 bool compositor_initialized_;
299 scoped_ptr<CompositorThread> compositor_thread_; 306 scoped_ptr<CompositorThread> compositor_thread_;
300 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_; 307 scoped_ptr<content::BrowserPluginRegistry> browser_plugin_registry_;
301 308
302 ObserverList<content::RenderProcessObserver> observers_; 309 ObserverList<content::RenderProcessObserver> observers_;
303 310
304 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 311 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
305 312
313 scoped_ptr<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