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

Unified Diff: chrome/gpu/gpu_video_decoder.cc

Issue 3020077: Revert 55405 - Special thanks for in-ming cheng's MFT hardware decodering cod... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « chrome/gpu/gpu_video_decoder.h ('k') | chrome/gpu/gpu_video_decoder_mft.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_video_decoder.cc
===================================================================
--- chrome/gpu/gpu_video_decoder.cc (revision 55418)
+++ chrome/gpu/gpu_video_decoder.cc (working copy)
@@ -1,108 +0,0 @@
-// Copyright (c) 2010 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 "chrome/common/gpu_messages.h"
-#include "chrome/gpu/gpu_channel.h"
-#include "chrome/gpu/gpu_video_decoder.h"
-
-void GpuVideoDecoder::OnChannelConnected(int32 peer_pid) {
-}
-
-void GpuVideoDecoder::OnChannelError() {
-}
-
-void GpuVideoDecoder::OnMessageReceived(const IPC::Message& msg) {
- IPC_BEGIN_MESSAGE_MAP(GpuVideoDecoder, msg)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_Initialize,
- OnInitialize)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_Destroy,
- OnUninitialize)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_Flush,
- OnFlush)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_EmptyThisBuffer,
- OnEmptyThisBuffer)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_FillThisBuffer,
- OnFillThisBuffer)
- IPC_MESSAGE_HANDLER(GpuVideoDecoderMsg_FillThisBufferDoneACK,
- OnFillThisBufferDoneACK)
- IPC_MESSAGE_UNHANDLED_ERROR()
- IPC_END_MESSAGE_MAP()
-}
-
-GpuVideoDecoder::GpuVideoDecoder(
- const GpuVideoDecoderInfoParam* param,
- GpuChannel* channel,
- base::ProcessHandle handle)
- : decoder_host_route_id_(param->decoder_host_route_id_),
- channel_(channel), renderer_handle_(handle) {
-}
-
-void GpuVideoDecoder::OnInitialize(const GpuVideoDecoderInitParam& param) {
- init_param_ = param;
- done_param_.success_ = DoInitialize(init_param_, &done_param_);
-}
-
-void GpuVideoDecoder::OnUninitialize() {
- DoUninitialize();
-}
-
-void GpuVideoDecoder::OnFlush() {
- DoFlush();
-}
-
-void GpuVideoDecoder::OnEmptyThisBuffer(
- const GpuVideoDecoderInputBufferParam& buffer) {
- DoEmptyThisBuffer(buffer);
-}
-void GpuVideoDecoder::OnFillThisBuffer(
- const GpuVideoDecoderOutputBufferParam& frame) {
- DoFillThisBuffer(frame);
-}
-
-void GpuVideoDecoder::OnFillThisBufferDoneACK() {
- DoFillThisBufferDoneACK();
-}
-
-void GpuVideoDecoder::SendInitializeDone(
- const GpuVideoDecoderInitDoneParam& param) {
- if (!channel_->Send(
- new GpuVideoDecoderHostMsg_InitializeACK(route_id(), param))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_InitializeACK failed";
- }
-}
-
-void GpuVideoDecoder::SendUninitializeDone() {
- if (!channel_->Send(new GpuVideoDecoderHostMsg_DestroyACK(route_id()))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_DestroyACK failed";
- }
-}
-
-void GpuVideoDecoder::SendFlushDone() {
- if (!channel_->Send(new GpuVideoDecoderHostMsg_FlushACK(route_id()))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_FlushACK failed";
- }
-}
-
-void GpuVideoDecoder::SendEmptyBufferDone() {
- if (!channel_->Send(
- new GpuVideoDecoderHostMsg_EmptyThisBufferDone(route_id()))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_EmptyThisBufferDone failed";
- }
-}
-
-void GpuVideoDecoder::SendEmptyBufferACK() {
- if (!channel_->Send(
- new GpuVideoDecoderHostMsg_EmptyThisBufferACK(route_id()))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_EmptyThisBufferACK failed";
- }
-}
-
-void GpuVideoDecoder::SendFillBufferDone(
- const GpuVideoDecoderOutputBufferParam& frame) {
- if (!channel_->Send(
- new GpuVideoDecoderHostMsg_FillThisBufferDone(route_id(), frame))) {
- LOG(ERROR) << "GpuVideoDecoderMsg_FillThisBufferDone failed";
- }
-}
-
« no previous file with comments | « chrome/gpu/gpu_video_decoder.h ('k') | chrome/gpu/gpu_video_decoder_mft.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698