| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 GpuCommandBufferStub* stub); | 29 GpuCommandBufferStub* stub); |
| 30 virtual ~GpuVideoDecodeAccelerator(); | 30 virtual ~GpuVideoDecodeAccelerator(); |
| 31 | 31 |
| 32 // IPC::Channel::Listener implementation. | 32 // IPC::Channel::Listener implementation. |
| 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 34 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 34 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 35 virtual void OnChannelError() OVERRIDE; | 35 virtual void OnChannelError() OVERRIDE; |
| 36 | 36 |
| 37 // media::VideoDecodeAccelerator::Client implementation. | 37 // media::VideoDecodeAccelerator::Client implementation. |
| 38 virtual void ProvidePictureBuffers( | 38 virtual void ProvidePictureBuffers( |
| 39 uint32 requested_num_of_buffers, | 39 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; |
| 40 const gfx::Size& dimensions, | |
| 41 media::VideoDecodeAccelerator::MemoryType type) OVERRIDE; | |
| 42 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 40 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 43 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 41 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 44 virtual void NotifyInitializeDone() OVERRIDE; | 42 virtual void NotifyInitializeDone() OVERRIDE; |
| 45 virtual void NotifyEndOfStream() OVERRIDE; | 43 virtual void NotifyEndOfStream() OVERRIDE; |
| 46 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 44 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 47 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; | 45 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; |
| 48 virtual void NotifyFlushDone() OVERRIDE; | 46 virtual void NotifyFlushDone() OVERRIDE; |
| 49 virtual void NotifyResetDone() OVERRIDE; | 47 virtual void NotifyResetDone() OVERRIDE; |
| 50 | 48 |
| 51 // Function to delegate sending to actual sender. | 49 // Function to delegate sending to actual sender. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Unowned pointer to the underlying GpuCommandBufferStub. | 89 // Unowned pointer to the underlying GpuCommandBufferStub. |
| 92 GpuCommandBufferStub* stub_; | 90 GpuCommandBufferStub* stub_; |
| 93 | 91 |
| 94 // Pointer to the underlying VideoDecodeAccelerator. | 92 // Pointer to the underlying VideoDecodeAccelerator. |
| 95 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; | 93 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; |
| 96 | 94 |
| 97 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 95 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 98 }; | 96 }; |
| 99 | 97 |
| 100 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 98 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |