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

Unified Diff: ppapi/proxy/media_stream_audio_track_resource.h

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/proxy/interface_list.cc ('k') | ppapi/proxy/media_stream_audio_track_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/media_stream_audio_track_resource.h
diff --git a/ppapi/proxy/media_stream_audio_track_resource.h b/ppapi/proxy/media_stream_audio_track_resource.h
index 8b9d9ec32fc32139ab8eb8f3679d44cf353b8646..694ae227a1093eb432df5b7f5792d5ed5e2701ca 100644
--- a/ppapi/proxy/media_stream_audio_track_resource.h
+++ b/ppapi/proxy/media_stream_audio_track_resource.h
@@ -15,7 +15,7 @@
namespace ppapi {
namespace proxy {
-class AudioFrameResource;
+class AudioBufferResource;
class PPAPI_PROXY_EXPORT MediaStreamAudioTrackResource
: public MediaStreamTrackResourceBase,
@@ -39,27 +39,27 @@ class PPAPI_PROXY_EXPORT MediaStreamAudioTrackResource
scoped_refptr<TrackedCallback> callback) OVERRIDE;
virtual int32_t GetAttrib(PP_MediaStreamAudioTrack_Attrib attrib,
int32_t* value) OVERRIDE;
- virtual int32_t GetFrame(
- PP_Resource* frame,
+ virtual int32_t GetBuffer(
+ PP_Resource* buffer,
scoped_refptr<TrackedCallback> callback) OVERRIDE;
- virtual int32_t RecycleFrame(PP_Resource frame) OVERRIDE;
+ virtual int32_t RecycleBuffer(PP_Resource buffer) OVERRIDE;
virtual void Close() OVERRIDE;
// MediaStreamBufferManager::Delegate overrides:
virtual void OnNewBufferEnqueued() OVERRIDE;
private:
- PP_Resource GetAudioFrame();
+ PP_Resource GetAudioBuffer();
- void ReleaseFrames();
+ void ReleaseBuffers();
- // Allocated frame resources by |GetFrame()|.
- typedef std::map<PP_Resource, scoped_refptr<AudioFrameResource> > FrameMap;
- FrameMap frames_;
+ // Allocated buffer resources by |GetBuffer()|.
+ typedef std::map<PP_Resource, scoped_refptr<AudioBufferResource> > BufferMap;
+ BufferMap buffers_;
- PP_Resource* get_frame_output_;
+ PP_Resource* get_buffer_output_;
- scoped_refptr<TrackedCallback> get_frame_callback_;
+ scoped_refptr<TrackedCallback> get_buffer_callback_;
DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioTrackResource);
};
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/media_stream_audio_track_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698