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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Check all LatencyHints WebAudioDeviceImpl test. Created 4 years 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 namespace v8 { 64 namespace v8 {
65 class Context; 65 class Context;
66 template <class T> 66 template <class T>
67 class Local; 67 class Local;
68 } 68 }
69 69
70 namespace blink { 70 namespace blink {
71 71
72 class InterfaceProvider; 72 class InterfaceProvider;
73 class WebAudioBus; 73 class WebAudioBus;
74 class WebAudioLatencyHint;
74 class WebBlobRegistry; 75 class WebBlobRegistry;
75 class WebCanvasCaptureHandler; 76 class WebCanvasCaptureHandler;
76 class WebClipboard; 77 class WebClipboard;
77 class WebCompositorSupport; 78 class WebCompositorSupport;
78 class WebCookieJar; 79 class WebCookieJar;
79 class WebCrypto; 80 class WebCrypto;
80 class WebDatabaseObserver; 81 class WebDatabaseObserver;
81 class WebPlatformEventListener; 82 class WebPlatformEventListener;
82 class WebFallbackThemeEngine; 83 class WebFallbackThemeEngine;
83 class WebFileSystem; 84 class WebFileSystem;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 166 }
166 167
167 // Audio -------------------------------------------------------------- 168 // Audio --------------------------------------------------------------
168 169
169 virtual double audioHardwareSampleRate() { return 0; } 170 virtual double audioHardwareSampleRate() { return 0; }
170 virtual size_t audioHardwareBufferSize() { return 0; } 171 virtual size_t audioHardwareBufferSize() { return 0; }
171 virtual unsigned audioHardwareOutputChannels() { return 0; } 172 virtual unsigned audioHardwareOutputChannels() { return 0; }
172 173
173 // Creates a device for audio I/O. 174 // Creates a device for audio I/O.
174 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 175 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
175 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, 176 virtual WebAudioDevice* createAudioDevice(
176 unsigned numberOfInputChannels, 177 unsigned numberOfInputChannels,
177 unsigned numberOfChannels, 178 unsigned numberOfChannels,
178 double sampleRate, 179 const WebAudioLatencyHint& latencyHint,
179 WebAudioDevice::RenderCallback*, 180 WebAudioDevice::RenderCallback*,
180 const WebString& deviceId, 181 const WebString& deviceId,
181 const WebSecurityOrigin&) { 182 const WebSecurityOrigin&) {
182 return nullptr; 183 return nullptr;
183 } 184 }
184 185
185 // MIDI ---------------------------------------------------------------- 186 // MIDI ----------------------------------------------------------------
186 187
187 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform 188 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform
188 // creates and owns it. 189 // creates and owns it.
189 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { 190 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) {
190 return nullptr; 191 return nullptr;
191 } 192 }
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 protected: 676 protected:
676 Platform(); 677 Platform();
677 virtual ~Platform() {} 678 virtual ~Platform() {}
678 679
679 WebThread* m_mainThread; 680 WebThread* m_mainThread;
680 }; 681 };
681 682
682 } // namespace blink 683 } // namespace blink
683 684
684 #endif 685 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698