Commit f5c7c479 authored by hbos's avatar hbos Committed by Commit bot

RTCVideoDecoder: Using I420VideoFrame directly instead of to-be-removed...

RTCVideoDecoder: Using I420VideoFrame directly instead of to-be-removed TextureVideoFrame (previously this typeddefed to I420VideoFrame).

BUG=webrtc:1128

Review URL: https://codereview.chromium.org/990913002

Cr-Commit-Position: refs/heads/master@{#319652}
parent 43018bb8
......@@ -18,7 +18,7 @@
#include "media/base/bind_to_current_loop.h"
#include "media/renderers/gpu_video_accelerator_factories.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/webrtc/common_video/interface/texture_video_frame.h"
#include "third_party/webrtc/common_video/interface/i420_video_frame.h"
#include "third_party/webrtc/system_wrappers/interface/ref_count.h"
namespace content {
......@@ -390,11 +390,11 @@ void RTCVideoDecoder::PictureReady(const media::Picture& picture) {
// Create a WebRTC video frame.
webrtc::RefCountImpl<NativeHandleImpl>* handle =
new webrtc::RefCountImpl<NativeHandleImpl>(frame);
webrtc::TextureVideoFrame decoded_image(handle,
picture.visible_rect().width(),
picture.visible_rect().height(),
timestamp,
0);
webrtc::I420VideoFrame decoded_image(handle,
picture.visible_rect().width(),
picture.visible_rect().height(),
timestamp,
0);
// Invoke decode callback. WebRTC expects no callback after Reset or Release.
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment