| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 ~AndroidVideoDecodeAccelerator() override; | 51 ~AndroidVideoDecodeAccelerator() override; |
| 52 | 52 |
| 53 // VideoDecodeAccelerator implementation: | 53 // VideoDecodeAccelerator implementation: |
| 54 bool Initialize(const Config& config, Client* client) override; | 54 bool Initialize(const Config& config, Client* client) override; |
| 55 void Decode(const BitstreamBuffer& bitstream_buffer) override; | 55 void Decode(const BitstreamBuffer& bitstream_buffer) override; |
| 56 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; | 56 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; |
| 57 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 57 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 58 void Flush() override; | 58 void Flush() override; |
| 59 void Reset() override; | 59 void Reset() override; |
| 60 void SetSurface(int surface_id) override; |
| 60 void Destroy() override; | 61 void Destroy() override; |
| 61 bool TryToSetupDecodeOnSeparateThread( | 62 bool TryToSetupDecodeOnSeparateThread( |
| 62 const base::WeakPtr<Client>& decode_client, | 63 const base::WeakPtr<Client>& decode_client, |
| 63 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 64 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 64 override; | 65 override; |
| 65 | 66 |
| 66 // AVDAStateProvider implementation: | 67 // AVDAStateProvider implementation: |
| 67 const gfx::Size& GetSize() const override; | 68 const gfx::Size& GetSize() const override; |
| 68 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; | 69 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; |
| 69 void PostError(const ::tracked_objects::Location& from_here, | 70 void PostError(const ::tracked_objects::Location& from_here, |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 391 |
| 391 // WeakPtrFactory for posting tasks back to |this|. | 392 // WeakPtrFactory for posting tasks back to |this|. |
| 392 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 393 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 393 | 394 |
| 394 friend class AndroidVideoDecodeAcceleratorTest; | 395 friend class AndroidVideoDecodeAcceleratorTest; |
| 395 }; | 396 }; |
| 396 | 397 |
| 397 } // namespace media | 398 } // namespace media |
| 398 | 399 |
| 399 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 400 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |