| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_VIDEO_DECODER_H_ | 5 #ifndef CHROME_GPU_GPU_VIDEO_DECODER_H_ |
| 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ | 6 #define CHROME_GPU_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Used only in system memory path. i.e. Remove this later. | 68 // Used only in system memory path. i.e. Remove this later. |
| 69 scoped_refptr<VideoFrame> frame_; | 69 scoped_refptr<VideoFrame> frame_; |
| 70 bool output_transfer_buffer_busy_; | 70 bool output_transfer_buffer_busy_; |
| 71 int32 pending_output_requests_; | 71 int32 pending_output_requests_; |
| 72 | 72 |
| 73 GpuChannel* channel_; | 73 GpuChannel* channel_; |
| 74 base::ProcessHandle renderer_handle_; | 74 base::ProcessHandle renderer_handle_; |
| 75 | 75 |
| 76 // The GLES2 decoder has the context associated with this decoder. This object | 76 // The GLES2 decoder has the context associated with this decoder. This object |
| 77 // is used to switch GLES2 context and translate client texture ID to service | 77 // is used to switch context and translate client texture ID to service ID. |
| 78 // ID. | |
| 79 gpu::gles2::GLES2Decoder* gles2_decoder_; | 78 gpu::gles2::GLES2Decoder* gles2_decoder_; |
| 80 | 79 |
| 81 scoped_ptr<base::SharedMemory> input_transfer_buffer_; | 80 scoped_ptr<base::SharedMemory> input_transfer_buffer_; |
| 82 scoped_ptr<base::SharedMemory> output_transfer_buffer_; | 81 scoped_ptr<base::SharedMemory> output_transfer_buffer_; |
| 83 | 82 |
| 84 scoped_ptr<media::VideoDecodeEngine> decode_engine_; | 83 scoped_ptr<media::VideoDecodeEngine> decode_engine_; |
| 85 media::VideoCodecConfig config_; | 84 media::VideoCodecConfig config_; |
| 86 media::VideoCodecInfo info_; | 85 media::VideoCodecInfo info_; |
| 87 | 86 |
| 88 // Input message handler. | 87 // Input message handler. |
| 89 void OnInitialize(const GpuVideoDecoderInitParam& param); | 88 void OnInitialize(const GpuVideoDecoderInitParam& param); |
| 90 void OnUninitialize(); | 89 void OnUninitialize(); |
| 91 void OnFlush(); | 90 void OnFlush(); |
| 92 void OnEmptyThisBuffer(const GpuVideoDecoderInputBufferParam& buffer); | 91 void OnEmptyThisBuffer(const GpuVideoDecoderInputBufferParam& buffer); |
| 93 void OnFillThisBuffer(const GpuVideoDecoderOutputBufferParam& frame); | 92 void OnFillThisBuffer(const GpuVideoDecoderOutputBufferParam& param); |
| 94 void OnFillThisBufferDoneACK(); | 93 void OnFillThisBufferDoneACK(); |
| 95 | 94 |
| 96 // Output message helper. | 95 // Output message helper. |
| 97 void SendInitializeDone(const GpuVideoDecoderInitDoneParam& param); | 96 void SendInitializeDone(const GpuVideoDecoderInitDoneParam& param); |
| 98 void SendUninitializeDone(); | 97 void SendUninitializeDone(); |
| 99 void SendFlushDone(); | 98 void SendFlushDone(); |
| 100 void SendEmptyBufferDone(); | 99 void SendEmptyBufferDone(); |
| 101 void SendEmptyBufferACK(); | 100 void SendEmptyBufferACK(); |
| 102 void SendFillBufferDone(const GpuVideoDecoderOutputBufferParam& frame); | 101 void SendFillBufferDone(const GpuVideoDecoderOutputBufferParam& param); |
| 103 | 102 |
| 104 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 103 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_ | 106 #endif // CHROME_GPU_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |