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

Side by Side Diff: Source/modules/webaudio/AudioBuffer.h

Issue 1183763003: Remove ArrayBufferDeallocationObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s_ prefix Created 5 years, 6 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 DOMFloat32Array* getChannelData(unsigned channelIndex); 63 DOMFloat32Array* getChannelData(unsigned channelIndex);
64 void copyFromChannel(DOMFloat32Array*, long channelNumber, ExceptionState&); 64 void copyFromChannel(DOMFloat32Array*, long channelNumber, ExceptionState&);
65 void copyFromChannel(DOMFloat32Array*, long channelNumber, unsigned long sta rtInChannel, ExceptionState&); 65 void copyFromChannel(DOMFloat32Array*, long channelNumber, unsigned long sta rtInChannel, ExceptionState&);
66 void copyToChannel(DOMFloat32Array*, long channelNumber, ExceptionState&); 66 void copyToChannel(DOMFloat32Array*, long channelNumber, ExceptionState&);
67 void copyToChannel(DOMFloat32Array*, long channelNumber, unsigned long start InChannel, ExceptionState&); 67 void copyToChannel(DOMFloat32Array*, long channelNumber, unsigned long start InChannel, ExceptionState&);
68 68
69 void zero(); 69 void zero();
70 70
71 DEFINE_INLINE_TRACE() { } 71 DEFINE_INLINE_TRACE() { }
72 72
73 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp erTypeInfo*, v8::Local<v8::Object> wrapper) override;
74
75 private: 73 private:
76 static PassRefPtr<DOMFloat32Array> createFloat32ArrayOrNull(size_t length); 74 static PassRefPtr<DOMFloat32Array> createFloat32ArrayOrNull(size_t length);
77 75
78 protected: 76 protected:
79 AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRa te); 77 AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRa te);
80 explicit AudioBuffer(AudioBus*); 78 explicit AudioBuffer(AudioBus*);
81 bool createdSuccessfully(unsigned desiredNumberOfChannels) const; 79 bool createdSuccessfully(unsigned desiredNumberOfChannels) const;
82 80
83 float m_sampleRate; 81 float m_sampleRate;
84 size_t m_length; 82 size_t m_length;
85 83
86 Vector<RefPtr<DOMFloat32Array>> m_channels; 84 Vector<RefPtr<DOMFloat32Array>> m_channels;
87 }; 85 };
88 86
89 } // namespace blink 87 } // namespace blink
90 88
91 #endif // AudioBuffer_h 89 #endif // AudioBuffer_h
OLDNEW
« no previous file with comments | « Source/core/dom/DOMArrayBufferDeallocationObserver.cpp ('k') | Source/modules/webaudio/AudioBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698