| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 gfx::GLContext* gl, | 26 gfx::GLContext* gl, |
| 27 gfx::Size size, | 27 gfx::Size size, |
| 28 const base::Callback<bool(void)>& make_context_current); | 28 const base::Callback<bool(void)>& make_context_current); |
| 29 ~FakeVideoDecodeAccelerator() override; | 29 ~FakeVideoDecodeAccelerator() override; |
| 30 | 30 |
| 31 bool Initialize(const Config& config, Client* client) override; | 31 bool Initialize(const Config& config, Client* client) override; |
| 32 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 32 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
| 33 void AssignPictureBuffers( | 33 void AssignPictureBuffers( |
| 34 const std::vector<media::PictureBuffer>& buffers) override; | 34 const std::vector<media::PictureBuffer>& buffers) override; |
| 35 void ReusePictureBuffer(int32_t picture_buffer_id) override; | 35 void ReusePictureBuffer(int32_t picture_buffer_id) override; |
| 36 void Flush() override; | 36 void Flush(bool return_buffers) override; |
| 37 void Reset() override; | 37 void Reset() override; |
| 38 void Destroy() override; | 38 void Destroy() override; |
| 39 bool CanDecodeOnIOThread() override; | 39 bool CanDecodeOnIOThread() override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 void DoPictureReady(); | 42 void DoPictureReady(); |
| 43 | 43 |
| 44 // The message loop that created the class. Used for all callbacks. This | 44 // The message loop that created the class. Used for all callbacks. This |
| 45 // class expects all calls to this class to be on this message loop (not | 45 // class expects all calls to this class to be on this message loop (not |
| 46 // checked). | 46 // checked). |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 | 64 |
| 65 // The WeakPtrFactory for |weak_this_|. | 65 // The WeakPtrFactory for |weak_this_|. |
| 66 base::WeakPtrFactory<FakeVideoDecodeAccelerator> weak_this_factory_; | 66 base::WeakPtrFactory<FakeVideoDecodeAccelerator> weak_this_factory_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecodeAccelerator); | 68 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecodeAccelerator); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace content | 71 } // namespace content |
| 72 | 72 |
| 73 #endif // CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ | 73 #endif // CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |