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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 14522002: Handle decoding of vorbis files better on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « media/media.gyp ('k') | webkit/media/android/audio_decoder_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/glue/webkitplatformsupport_impl.h" 5 #include "webkit/glue/webkitplatformsupport_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // The last time the cached value was updated. 120 // The last time the cached value was updated.
121 base::Time last_updated_time_; 121 base::Time last_updated_time_;
122 122
123 base::Lock lock_; 123 base::Lock lock_;
124 }; 124 };
125 125
126 #if defined(OS_ANDROID) 126 #if defined(OS_ANDROID)
127 void NullRunWebAudioMediaCodec( 127 void NullRunWebAudioMediaCodec(
128 base::SharedMemoryHandle encoded_data_handle, 128 base::SharedMemoryHandle encoded_data_handle,
129 base::FileDescriptor pcm_output) { 129 base::FileDescriptor pcm_output,
130 size_t data_size) {
130 } 131 }
131 #endif 132 #endif
132 133
133 } // anonymous namespace 134 } // anonymous namespace
134 135
135 namespace webkit_glue { 136 namespace webkit_glue {
136 137
137 static int ToMessageID(WebLocalizedString::Name name) { 138 static int ToMessageID(WebLocalizedString::Name name) {
138 switch (name) { 139 switch (name) {
139 case WebLocalizedString::AXAMPMFieldText: 140 case WebLocalizedString::AXAMPMFieldText:
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } 999 }
999 1000
1000 #if defined(OS_ANDROID) 1001 #if defined(OS_ANDROID)
1001 webkit_media::WebAudioMediaCodecRunner 1002 webkit_media::WebAudioMediaCodecRunner
1002 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { 1003 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() {
1003 return base::Bind(&NullRunWebAudioMediaCodec); 1004 return base::Bind(&NullRunWebAudioMediaCodec);
1004 } 1005 }
1005 #endif 1006 #endif
1006 1007
1007 } // namespace webkit_glue 1008 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | webkit/media/android/audio_decoder_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698