// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/video_decode_accelerator_host.h" #include "base/logging.h" #include "base/task.h" using media::VideoDecodeAccelerator; using media::VideoDecodeAcceleratorCallback; VideoDecodeAcceleratorHost::VideoDecodeAcceleratorHost( MessageRouter* router, IPC::Message::Sender* ipc_sender, int32 decoder_host_id) : message_loop_(NULL), router_(router), ipc_sender_(ipc_sender), context_route_id_(0), decoder_host_id_(decoder_host_id), decoder_id_(0) { } VideoDecodeAcceleratorHost::~VideoDecodeAcceleratorHost() {} void VideoDecodeAcceleratorHost::OnChannelConnected(int32 peer_pid) {} void VideoDecodeAcceleratorHost::OnChannelError() { ipc_sender_ = NULL; } bool VideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) { bool handled = true; DCHECK(handled); return handled; } const std::vector& VideoDecodeAcceleratorHost::GetConfig( const std::vector& prototype_config) { // TODO(vmr): implement. NOTIMPLEMENTED(); return configs_; } bool VideoDecodeAcceleratorHost::Initialize( const std::vector& config) { // TODO(vmr): implement. NOTIMPLEMENTED(); return false; } bool VideoDecodeAcceleratorHost::Decode( media::BitstreamBuffer* bitstream_buffer, VideoDecodeAcceleratorCallback* callback) { // TODO(vmr): implement. NOTIMPLEMENTED(); return false; } void VideoDecodeAcceleratorHost::AssignPictureBuffer( std::vector picture_buffers) { // TODO(vmr): implement. NOTIMPLEMENTED(); } void VideoDecodeAcceleratorHost::ReusePictureBuffer( PictureBuffer* picture_buffer) { // TODO(vmr): implement. NOTIMPLEMENTED(); } bool VideoDecodeAcceleratorHost::Flush( VideoDecodeAcceleratorCallback* callback) { // TODO(vmr): implement. NOTIMPLEMENTED(); return false; } bool VideoDecodeAcceleratorHost::Abort( VideoDecodeAcceleratorCallback* callback) { // TODO(vmr): implement. NOTIMPLEMENTED(); return false; } DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost);