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

Unified Diff: ppapi/thunk/ppb_media_stream_audio_track_thunk.cc

Issue 156863005: [PPAPI][MediaStream] Rename AudioFrame to AudioBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@frame_to_buffer
Patch Set: Update Created 6 years, 10 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
« no previous file with comments | « ppapi/thunk/ppb_media_stream_audio_track_api.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_media_stream_audio_track_thunk.cc
diff --git a/ppapi/thunk/ppb_media_stream_audio_track_thunk.cc b/ppapi/thunk/ppb_media_stream_audio_track_thunk.cc
index 93a2829c39dc3808c3b976e7272102364e8bc9aa..c7140a1c1d344a09857c29217f45df178d12e798 100644
--- a/ppapi/thunk/ppb_media_stream_audio_track_thunk.cc
+++ b/ppapi/thunk/ppb_media_stream_audio_track_thunk.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From ppb_media_stream_audio_track.idl modified Thu Jan 23 15:04:50 2014.
+// From ppb_media_stream_audio_track.idl modified Thu Feb 6 15:43:37 2014.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -62,24 +62,24 @@ PP_Bool HasEnded(PP_Resource audio_track) {
return enter.object()->HasEnded();
}
-int32_t GetFrame(PP_Resource audio_track,
- PP_Resource* frame,
- struct PP_CompletionCallback callback) {
- VLOG(4) << "PPB_MediaStreamAudioTrack::GetFrame()";
+int32_t GetBuffer(PP_Resource audio_track,
+ PP_Resource* buffer,
+ struct PP_CompletionCallback callback) {
+ VLOG(4) << "PPB_MediaStreamAudioTrack::GetBuffer()";
EnterResource<PPB_MediaStreamAudioTrack_API> enter(audio_track,
callback,
true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->GetFrame(frame, enter.callback()));
+ return enter.SetResult(enter.object()->GetBuffer(buffer, enter.callback()));
}
-int32_t RecycleFrame(PP_Resource audio_track, PP_Resource frame) {
- VLOG(4) << "PPB_MediaStreamAudioTrack::RecycleFrame()";
+int32_t RecycleBuffer(PP_Resource audio_track, PP_Resource buffer) {
+ VLOG(4) << "PPB_MediaStreamAudioTrack::RecycleBuffer()";
EnterResource<PPB_MediaStreamAudioTrack_API> enter(audio_track, true);
if (enter.failed())
return enter.retval();
- return enter.object()->RecycleFrame(frame);
+ return enter.object()->RecycleBuffer(buffer);
}
void Close(PP_Resource audio_track) {
@@ -96,8 +96,8 @@ const PPB_MediaStreamAudioTrack_0_1 g_ppb_mediastreamaudiotrack_thunk_0_1 = {
&GetAttrib,
&GetId,
&HasEnded,
- &GetFrame,
- &RecycleFrame,
+ &GetBuffer,
+ &RecycleBuffer,
&Close
};
« no previous file with comments | « ppapi/thunk/ppb_media_stream_audio_track_api.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698