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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Fixes to WebAudioDeviceImpl unit test. Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 namespace v8 { 65 namespace v8 {
66 class Context; 66 class Context;
67 template <class T> 67 template <class T>
68 class Local; 68 class Local;
69 } 69 }
70 70
71 namespace blink { 71 namespace blink {
72 72
73 class InterfaceProvider; 73 class InterfaceProvider;
74 class WebAudioBus; 74 class WebAudioBus;
75 class WebAudioLatencyHint;
75 class WebBlobRegistry; 76 class WebBlobRegistry;
76 class WebCanvasCaptureHandler; 77 class WebCanvasCaptureHandler;
77 class WebClipboard; 78 class WebClipboard;
78 class WebCompositorSupport; 79 class WebCompositorSupport;
79 class WebCookieJar; 80 class WebCookieJar;
80 class WebCrypto; 81 class WebCrypto;
81 class WebDatabaseObserver; 82 class WebDatabaseObserver;
82 class WebPlatformEventListener; 83 class WebPlatformEventListener;
83 class WebFallbackThemeEngine; 84 class WebFallbackThemeEngine;
84 class WebFileSystem; 85 class WebFileSystem;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 167 }
167 168
168 // Audio -------------------------------------------------------------- 169 // Audio --------------------------------------------------------------
169 170
170 virtual double audioHardwareSampleRate() { return 0; } 171 virtual double audioHardwareSampleRate() { return 0; }
171 virtual size_t audioHardwareBufferSize() { return 0; } 172 virtual size_t audioHardwareBufferSize() { return 0; }
172 virtual unsigned audioHardwareOutputChannels() { return 0; } 173 virtual unsigned audioHardwareOutputChannels() { return 0; }
173 174
174 // Creates a device for audio I/O. 175 // Creates a device for audio I/O.
175 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 176 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
176 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, 177 virtual WebAudioDevice* createAudioDevice(
177 unsigned numberOfInputChannels, 178 unsigned numberOfInputChannels,
178 unsigned numberOfChannels, 179 unsigned numberOfChannels,
179 double sampleRate, 180 const WebAudioLatencyHint& latencyHint,
180 WebAudioDevice::RenderCallback*, 181 WebAudioDevice::RenderCallback*,
181 const WebString& deviceId, 182 const WebString& deviceId,
182 const WebSecurityOrigin&) { 183 const WebSecurityOrigin&) {
183 return nullptr; 184 return nullptr;
184 } 185 }
185 186
186 // MIDI ---------------------------------------------------------------- 187 // MIDI ----------------------------------------------------------------
187 188
188 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform 189 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform
189 // creates and owns it. 190 // creates and owns it.
190 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { 191 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) {
191 return nullptr; 192 return nullptr;
192 } 193 }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 protected: 672 protected:
672 Platform(); 673 Platform();
673 virtual ~Platform() {} 674 virtual ~Platform() {}
674 675
675 WebThread* m_mainThread; 676 WebThread* m_mainThread;
676 }; 677 };
677 678
678 } // namespace blink 679 } // namespace blink
679 680
680 #endif 681 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioDestination.cpp ('k') | third_party/WebKit/public/platform/WebAudioDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698