OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/common/gpu/media/vt_video_decode_accelerator.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 VTVideoDecodeAccelerator::VTVideoDecodeAccelerator(CGLContextObj cgl_context) |
| 10 : loop_proxy_(base::MessageLoopProxy::current()), |
| 11 cgl_context_(cgl_context), |
| 12 client_(NULL), |
| 13 weak_this_factory_(this) { |
| 14 } |
| 15 |
| 16 VTVideoDecodeAccelerator::~VTVideoDecodeAccelerator() { |
| 17 } |
| 18 |
| 19 bool VTVideoDecodeAccelerator::Initialize( |
| 20 media::VideoCodecProfile profile, |
| 21 Client* client) { |
| 22 DCHECK(CalledOnValidThread()); |
| 23 DVLOG(2) << __FUNCTION__; |
| 24 client_ = client; |
| 25 |
| 26 // Only H.264 is supported. |
| 27 if (profile < media::H264PROFILE_MIN || profile > media::H264PROFILE_MAX) |
| 28 return false; |
| 29 |
| 30 // Prevent anyone from using VTVideoDecoder for now. http://crbug.com/133828 |
| 31 return false; |
| 32 } |
| 33 |
| 34 void VTVideoDecodeAccelerator::Decode(const media::BitstreamBuffer& bitstream) { |
| 35 DCHECK(CalledOnValidThread()); |
| 36 } |
| 37 |
| 38 void VTVideoDecodeAccelerator::AssignPictureBuffers( |
| 39 const std::vector<media::PictureBuffer>& pictures) { |
| 40 DCHECK(CalledOnValidThread()); |
| 41 } |
| 42 |
| 43 void VTVideoDecodeAccelerator::ReusePictureBuffer(int32_t picture_id) { |
| 44 DCHECK(CalledOnValidThread()); |
| 45 } |
| 46 |
| 47 void VTVideoDecodeAccelerator::Flush() { |
| 48 DCHECK(CalledOnValidThread()); |
| 49 } |
| 50 |
| 51 void VTVideoDecodeAccelerator::Reset() { |
| 52 DCHECK(CalledOnValidThread()); |
| 53 } |
| 54 |
| 55 void VTVideoDecodeAccelerator::Destroy() { |
| 56 DCHECK(CalledOnValidThread()); |
| 57 } |
| 58 |
| 59 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() { |
| 60 return false; |
| 61 } |
| 62 |
| 63 } // namespace content |
OLD | NEW |