| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 ~AndroidVideoDecodeAccelerator() override; | 73 ~AndroidVideoDecodeAccelerator() override; |
| 74 | 74 |
| 75 // VideoDecodeAccelerator implementation: | 75 // VideoDecodeAccelerator implementation: |
| 76 bool Initialize(const Config& config, Client* client) override; | 76 bool Initialize(const Config& config, Client* client) override; |
| 77 void Decode(const BitstreamBuffer& bitstream_buffer) override; | 77 void Decode(const BitstreamBuffer& bitstream_buffer) override; |
| 78 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; | 78 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; |
| 79 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 79 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 80 void Flush() override; | 80 void Flush() override; |
| 81 void Reset() override; | 81 void Reset() override; |
| 82 void SetSurface( | 82 void SetOverlayInfo(const OverlayInfo& overlay_info) override; |
| 83 int32_t surface_id, | |
| 84 const base::Optional<base::UnguessableToken>& routing_token) override; | |
| 85 void Destroy() override; | 83 void Destroy() override; |
| 86 bool TryToSetupDecodeOnSeparateThread( | 84 bool TryToSetupDecodeOnSeparateThread( |
| 87 const base::WeakPtr<Client>& decode_client, | 85 const base::WeakPtr<Client>& decode_client, |
| 88 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 86 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 89 override; | 87 override; |
| 90 | 88 |
| 91 // AVDAStateProvider implementation: | 89 // AVDAStateProvider implementation: |
| 92 const gfx::Size& GetSize() const override; | 90 const gfx::Size& GetSize() const override; |
| 93 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; | 91 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; |
| 94 // Notifies the client about the error and sets |state_| to |ERROR|. If we're | 92 // Notifies the client about the error and sets |state_| to |ERROR|. If we're |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 404 |
| 407 // WeakPtrFactory for posting tasks back to |this|. | 405 // WeakPtrFactory for posting tasks back to |this|. |
| 408 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 406 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 409 | 407 |
| 410 friend class AndroidVideoDecodeAcceleratorTest; | 408 friend class AndroidVideoDecodeAcceleratorTest; |
| 411 }; | 409 }; |
| 412 | 410 |
| 413 } // namespace media | 411 } // namespace media |
| 414 | 412 |
| 415 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 413 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |