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

Side by Side Diff: third_party/WebKit/Source/platform/audio/HRTFKernel.h

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class PLATFORM_EXPORT HRTFKernel { 52 class PLATFORM_EXPORT HRTFKernel {
53 USING_FAST_MALLOC(HRTFKernel); 53 USING_FAST_MALLOC(HRTFKernel);
54 WTF_MAKE_NONCOPYABLE(HRTFKernel); 54 WTF_MAKE_NONCOPYABLE(HRTFKernel);
55 55
56 public: 56 public:
57 // Note: this is destructive on the passed in AudioChannel. 57 // Note: this is destructive on the passed in AudioChannel.
58 // The length of channel must be a power of two. 58 // The length of channel must be a power of two.
59 static std::unique_ptr<HRTFKernel> create(AudioChannel* channel, 59 static std::unique_ptr<HRTFKernel> create(AudioChannel* channel,
60 size_t fftSize, 60 size_t fftSize,
61 float sampleRate) { 61 float sampleRate) {
62 return wrapUnique(new HRTFKernel(channel, fftSize, sampleRate)); 62 return WTF::wrapUnique(new HRTFKernel(channel, fftSize, sampleRate));
63 } 63 }
64 64
65 static std::unique_ptr<HRTFKernel> create(std::unique_ptr<FFTFrame> fftFrame, 65 static std::unique_ptr<HRTFKernel> create(std::unique_ptr<FFTFrame> fftFrame,
66 float frameDelay, 66 float frameDelay,
67 float sampleRate) { 67 float sampleRate) {
68 return wrapUnique( 68 return WTF::wrapUnique(
69 new HRTFKernel(std::move(fftFrame), frameDelay, sampleRate)); 69 new HRTFKernel(std::move(fftFrame), frameDelay, sampleRate));
70 } 70 }
71 71
72 // Given two HRTFKernels, and an interpolation factor x: 0 -> 1, returns an 72 // Given two HRTFKernels, and an interpolation factor x: 0 -> 1, returns an
73 // interpolated HRTFKernel. 73 // interpolated HRTFKernel.
74 static std::unique_ptr<HRTFKernel> 74 static std::unique_ptr<HRTFKernel>
75 createInterpolatedKernel(HRTFKernel* kernel1, HRTFKernel* kernel2, float x); 75 createInterpolatedKernel(HRTFKernel* kernel1, HRTFKernel* kernel2, float x);
76 76
77 FFTFrame* fftFrame() { return m_fftFrame.get(); } 77 FFTFrame* fftFrame() { return m_fftFrame.get(); }
78 78
(...skipping 20 matching lines...) Expand all
99 std::unique_ptr<FFTFrame> m_fftFrame; 99 std::unique_ptr<FFTFrame> m_fftFrame;
100 float m_frameDelay; 100 float m_frameDelay;
101 float m_sampleRate; 101 float m_sampleRate;
102 }; 102 };
103 103
104 typedef Vector<std::unique_ptr<HRTFKernel>> HRTFKernelList; 104 typedef Vector<std::unique_ptr<HRTFKernel>> HRTFKernelList;
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif // HRTFKernel_h 108 #endif // HRTFKernel_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/HRTFElevation.cpp ('k') | third_party/WebKit/Source/platform/audio/HRTFKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698