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 23 matching lines...) Expand all Loading... |
34 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; | 34 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; |
35 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 35 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
36 virtual void NotifyInitializeDone() OVERRIDE; | 36 virtual void NotifyInitializeDone() OVERRIDE; |
37 virtual void NotifyEndOfStream() OVERRIDE; | 37 virtual void NotifyEndOfStream() OVERRIDE; |
38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; | 39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; |
40 virtual void NotifyFlushDone() OVERRIDE; | 40 virtual void NotifyFlushDone() OVERRIDE; |
41 virtual void NotifyResetDone() OVERRIDE; | 41 virtual void NotifyResetDone() OVERRIDE; |
42 | 42 |
43 // Function to delegate sending to actual sender. | 43 // Function to delegate sending to actual sender. |
44 virtual bool Send(IPC::Message* message); | 44 virtual bool Send(IPC::Message* message) OVERRIDE; |
45 | 45 |
46 // Initialize the accelerator with the given profile and send the | 46 // Initialize the accelerator with the given profile and send the |
47 // |init_done_msg| when done. | 47 // |init_done_msg| when done. |
48 void Initialize(const media::VideoDecodeAccelerator::Profile profile, | 48 void Initialize(const media::VideoDecodeAccelerator::Profile profile, |
49 IPC::Message* init_done_msg); | 49 IPC::Message* init_done_msg); |
50 | 50 |
51 private: | 51 private: |
52 | 52 |
53 // Handlers for IPC messages. | 53 // Handlers for IPC messages. |
54 void OnDecode(base::SharedMemoryHandle handle, int32 id, int32 size); | 54 void OnDecode(base::SharedMemoryHandle handle, int32 id, int32 size); |
(...skipping 21 matching lines...) Expand all Loading... |
76 // Unowned pointer to the underlying GpuCommandBufferStub. | 76 // Unowned pointer to the underlying GpuCommandBufferStub. |
77 GpuCommandBufferStub* stub_; | 77 GpuCommandBufferStub* stub_; |
78 | 78 |
79 // Pointer to the underlying VideoDecodeAccelerator. | 79 // Pointer to the underlying VideoDecodeAccelerator. |
80 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; | 80 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; |
81 | 81 |
82 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 82 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
83 }; | 83 }; |
84 | 84 |
85 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 85 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |