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

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

Issue 12387006: Pass more detailed audio hardware configuration information to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const WebKit::WebString& challenge, 72 const WebKit::WebString& challenge,
73 const WebKit::WebURL& url); 73 const WebKit::WebURL& url);
74 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile); 74 virtual void screenColorProfile(WebKit::WebVector<char>* to_profile);
75 virtual WebKit::WebIDBFactory* idbFactory(); 75 virtual WebKit::WebIDBFactory* idbFactory();
76 virtual WebKit::WebFileSystem* fileSystem(); 76 virtual WebKit::WebFileSystem* fileSystem();
77 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); 77 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
78 virtual bool canAccelerate2dCanvas(); 78 virtual bool canAccelerate2dCanvas();
79 virtual bool isThreadedCompositingEnabled(); 79 virtual bool isThreadedCompositingEnabled();
80 virtual double audioHardwareSampleRate(); 80 virtual double audioHardwareSampleRate();
81 virtual size_t audioHardwareBufferSize(); 81 virtual size_t audioHardwareBufferSize();
82 virtual unsigned audioHardwareOutputChannels();
82 83
83 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. 84 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
84 virtual WebKit::WebAudioDevice* createAudioDevice( 85 virtual WebKit::WebAudioDevice* createAudioDevice(
85 size_t buffer_size, unsigned channels, double sample_rate, 86 size_t buffer_size, unsigned channels, double sample_rate,
86 WebKit::WebAudioDevice::RenderCallback* callback); 87 WebKit::WebAudioDevice::RenderCallback* callback);
87 // TODO(crogers): remove deprecated API as soon as WebKit calls new API. 88 // TODO(crogers): remove deprecated API as soon as WebKit calls new API.
88 virtual WebKit::WebAudioDevice* createAudioDevice( 89 virtual WebKit::WebAudioDevice* createAudioDevice(
89 size_t buffer_size, unsigned input_channels, unsigned channels, 90 size_t buffer_size, unsigned input_channels, unsigned channels,
90 double sample_rate, WebKit::WebAudioDevice::RenderCallback* callback); 91 double sample_rate, WebKit::WebAudioDevice::RenderCallback* callback);
91 92
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 163 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
163 164
164 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 165 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
165 166
166 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 167 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
167 }; 168 };
168 169
169 } // namespace content 170 } // namespace content
170 171
171 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 172 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698