| 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_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| 6 #define CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 6 #define CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; | 46 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; |
| 47 virtual bool Flush() OVERRIDE; | 47 virtual bool Flush() OVERRIDE; |
| 48 virtual bool Abort() OVERRIDE; | 48 virtual bool Abort() OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); | 51 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); |
| 52 void OnProvidePictureBuffer( | 52 void OnProvidePictureBuffer( |
| 53 uint32 num_requested_buffers, const gfx::Size& buffer_size, int32 mem_type); | 53 uint32 num_requested_buffers, const gfx::Size& buffer_size, int32 mem_type); |
| 54 void OnDismissPictureBuffer(int32 picture_buffer_id); | 54 void OnDismissPictureBuffer(int32 picture_buffer_id); |
| 55 void OnCreateDone(int32 decoder_id); | 55 void OnCreateDone(int32 decoder_id); |
| 56 void OnInitializeDone(); |
| 56 void OnPictureReady(int32 picture_buffer_id, | 57 void OnPictureReady(int32 picture_buffer_id, |
| 57 int32 bitstream_buffer_id, | 58 int32 bitstream_buffer_id, |
| 58 const gfx::Size& visible_size, | 59 const gfx::Size& visible_size, |
| 59 const gfx::Size& decoded_size); | 60 const gfx::Size& decoded_size); |
| 60 void OnFlushDone(); | 61 void OnFlushDone(); |
| 61 void OnAbortDone(); | 62 void OnAbortDone(); |
| 62 void OnEndOfStream(); | 63 void OnEndOfStream(); |
| 63 void OnErrorNotification(uint32 error); | 64 void OnErrorNotification(uint32 error); |
| 64 | 65 |
| 65 // A router used to send us IPC messages. | 66 // A router used to send us IPC messages. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 // Temporarily store configs here in between Create and Initialize phase. | 78 // Temporarily store configs here in between Create and Initialize phase. |
| 78 std::vector<uint32> configs_; | 79 std::vector<uint32> configs_; |
| 79 | 80 |
| 80 // Reference to the client that will receive callbacks from the decoder. | 81 // Reference to the client that will receive callbacks from the decoder. |
| 81 media::VideoDecodeAccelerator::Client* client_; | 82 media::VideoDecodeAccelerator::Client* client_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); | 84 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 #endif // CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ | 87 #endif // CONTENT_RENDERER_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ |
| OLD | NEW |