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

Unified Diff: content/renderer/media/video_track_adapter.cc

Issue 1154153003: Relanding 1143663007: VideoFrame: Separate Pixel Format from Storage Type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NV12 support in CrOS Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_adapter.cc
diff --git a/content/renderer/media/video_track_adapter.cc b/content/renderer/media/video_track_adapter.cc
index 2953f7d5679b63249d030785b736150cbe9b8b96..3f7fde2840b584003a370c56c1289362db2ae1a3 100644
--- a/content/renderer/media/video_track_adapter.cc
+++ b/content/renderer/media/video_track_adapter.cc
@@ -211,7 +211,7 @@ void VideoTrackAdapter::VideoFrameResolutionAdapter::DeliverFrame(
// TODO(perkj): Allow cropping / scaling of textures once
// http://crbug/362521 is fixed.
- if (frame->format() == media::VideoFrame::NATIVE_TEXTURE) {
+ if (frame->storage_type() == media::VideoFrame::STORAGE_TEXTURE) {
DoDeliverFrame(frame, estimated_capture_time);
return;
}
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698