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

Side by Side Diff: content/renderer/media/android/audio_decoder_android.cc

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/renderer/media/audio_decoder.h" 5 #include "content/renderer/media/audio_decoder.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <limits.h> 9 #include <limits.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/file_descriptor_posix.h" 15 #include "base/file_descriptor_posix.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/posix/eintr_wrapper.h" 17 #include "base/posix/eintr_wrapper.h"
18 #include "base/shared_memory.h" 18 #include "base/shared_memory.h"
19 #include "media/base/android/webaudio_media_codec_info.h" 19 #include "media/base/android/webaudio_media_codec_info.h"
20 #include "media/base/audio_bus.h" 20 #include "media/base/audio_bus.h"
21 #include "media/base/limits.h" 21 #include "media/base/limits.h"
22 #include "third_party/WebKit/public/platform/WebAudioBus.h" 22 #include "third_party/WebKit/public/platform/WebAudioBus.h"
23 23
24 namespace webkit_media { 24 namespace content {
25 25
26 class AudioDecoderIO { 26 class AudioDecoderIO {
27 public: 27 public:
28 AudioDecoderIO(const char* data, size_t data_size); 28 AudioDecoderIO(const char* data, size_t data_size);
29 ~AudioDecoderIO(); 29 ~AudioDecoderIO();
30 bool ShareEncodedToProcess(base::SharedMemoryHandle* handle); 30 bool ShareEncodedToProcess(base::SharedMemoryHandle* handle);
31 31
32 // Returns true if AudioDecoderIO was successfully created. 32 // Returns true if AudioDecoderIO was successfully created.
33 bool IsValid() const; 33 bool IsValid() const;
34 34
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 } else { 249 } else {
250 BufferAndCopyPcmDataToBus(input_fd, 250 BufferAndCopyPcmDataToBus(input_fd,
251 destination_bus, 251 destination_bus,
252 number_of_channels, 252 number_of_channels,
253 file_sample_rate); 253 file_sample_rate);
254 } 254 }
255 255
256 return true; 256 return true;
257 } 257 }
258 258
259 } // namespace webkit_media 259 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698