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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBuffer.h

Issue 1929493002: Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add two leftover classes needing same treatment Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
index ec8ebfec369b2810b906c095e0348c53ef109a01..a3b8ba1398afad60a60bbb673d444e97046ca3e8 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
@@ -42,7 +42,7 @@ namespace blink {
class AudioBus;
class ExceptionState;
-class MODULES_EXPORT AudioBuffer final : public GarbageCollectedFinalized<AudioBuffer>, public ScriptWrappable {
+class MODULES_EXPORT AudioBuffer final : public GarbageCollected<AudioBuffer>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
@@ -75,11 +75,11 @@ public:
}
private:
+ explicit AudioBuffer(AudioBus*);
+
static DOMFloat32Array* createFloat32ArrayOrNull(size_t length);
-protected:
AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
- explicit AudioBuffer(AudioBus*);
bool createdSuccessfully(unsigned desiredNumberOfChannels) const;
float m_sampleRate;

Powered by Google App Engine
This is Rietveld 408576698