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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Created 4 years, 1 month 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 169 }
169 170
170 // Audio -------------------------------------------------------------- 171 // Audio --------------------------------------------------------------
171 172
172 virtual double audioHardwareSampleRate() { return 0; } 173 virtual double audioHardwareSampleRate() { return 0; }
173 virtual size_t audioHardwareBufferSize() { return 0; } 174 virtual size_t audioHardwareBufferSize() { return 0; }
174 virtual unsigned audioHardwareOutputChannels() { return 0; } 175 virtual unsigned audioHardwareOutputChannels() { return 0; }
175 176
176 // Creates a device for audio I/O. 177 // Creates a device for audio I/O.
177 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 178 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
178 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, 179 virtual WebAudioDevice* createAudioDevice(
179 unsigned numberOfInputChannels, 180 unsigned numberOfInputChannels,
180 unsigned numberOfChannels, 181 unsigned numberOfChannels,
181 double sampleRate, 182 const WebAudioLatencyHint& latencyHint,
182 WebAudioDevice::RenderCallback*, 183 WebAudioDevice::RenderCallback*,
183 const WebString& deviceId, 184 const WebString& deviceId,
184 const WebSecurityOrigin&) { 185 const WebSecurityOrigin&) {
185 return nullptr; 186 return nullptr;
186 } 187 }
187 188
188 // MIDI ---------------------------------------------------------------- 189 // MIDI ----------------------------------------------------------------
189 190
190 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform 191 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform
191 // creates and owns it. 192 // creates and owns it.
192 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { 193 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) {
193 return nullptr; 194 return nullptr;
194 } 195 }
(...skipping 480 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