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

Unified Diff: trunk/src/content/renderer/media/webmediaplayer_impl.h

Issue 210743002: Revert 259154 "Remove HasAudio(), HasVideo(), GetInitialNaturalS..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « no previous file | trunk/src/content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/renderer/media/webmediaplayer_impl.h
===================================================================
--- trunk/src/content/renderer/media/webmediaplayer_impl.h (revision 259158)
+++ trunk/src/content/renderer/media/webmediaplayer_impl.h (working copy)
@@ -166,8 +166,8 @@
void OnPipelineSeek(media::PipelineStatus status);
void OnPipelineEnded();
void OnPipelineError(media::PipelineStatus error);
- void OnPipelineMetadata(media::PipelineMetadata metadata);
- void OnPipelinePrerollCompleted();
+ void OnPipelineBufferingState(
+ media::Pipeline::BufferingState buffering_state);
void OnDemuxerOpened();
void OnKeyAdded(const std::string& session_id);
void OnKeyError(const std::string& session_id,
@@ -261,9 +261,6 @@
// The LoadType passed in the |load_type| parameter of the load() call.
LoadType load_type_;
- // Cache of metadata for answering hasAudio(), hasVideo(), and naturalSize().
- media::PipelineMetadata pipeline_metadata_;
-
// Playback state.
//
// TODO(scherkus): we have these because Pipeline favours the simplicity of a
@@ -326,6 +323,7 @@
// Video rendering members.
VideoFrameCompositor compositor_;
media::SkCanvasVideoRenderer skcanvas_video_renderer_;
+ gfx::Size natural_size_;
// The compositor layer for displaying the video content when using composited
// playback.
« no previous file with comments | « no previous file | trunk/src/content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698