| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 ~AndroidVideoDecodeAccelerator() override; | 71 ~AndroidVideoDecodeAccelerator() override; |
| 72 | 72 |
| 73 // VideoDecodeAccelerator implementation: | 73 // VideoDecodeAccelerator implementation: |
| 74 bool Initialize(const Config& config, Client* client) override; | 74 bool Initialize(const Config& config, Client* client) override; |
| 75 void Decode(const BitstreamBuffer& bitstream_buffer) override; | 75 void Decode(const BitstreamBuffer& bitstream_buffer) override; |
| 76 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; | 76 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; |
| 77 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 77 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 78 void Flush() override; | 78 void Flush() override; |
| 79 void Reset() override; | 79 void Reset() override; |
| 80 void SetSurface(int32_t surface_id) override; | 80 void SetSurface( |
| 81 int32_t surface_id, |
| 82 const base::Optional<base::UnguessableToken>& routing_token) override; |
| 81 void Destroy() override; | 83 void Destroy() override; |
| 82 bool TryToSetupDecodeOnSeparateThread( | 84 bool TryToSetupDecodeOnSeparateThread( |
| 83 const base::WeakPtr<Client>& decode_client, | 85 const base::WeakPtr<Client>& decode_client, |
| 84 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) | 86 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) |
| 85 override; | 87 override; |
| 86 | 88 |
| 87 // AVDAStateProvider implementation: | 89 // AVDAStateProvider implementation: |
| 88 const gfx::Size& GetSize() const override; | 90 const gfx::Size& GetSize() const override; |
| 89 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; | 91 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; |
| 90 // 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 401 |
| 400 // WeakPtrFactory for posting tasks back to |this|. | 402 // WeakPtrFactory for posting tasks back to |this|. |
| 401 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 403 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 402 | 404 |
| 403 friend class AndroidVideoDecodeAcceleratorTest; | 405 friend class AndroidVideoDecodeAcceleratorTest; |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 } // namespace media | 408 } // namespace media |
| 407 | 409 |
| 408 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 410 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |