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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual uint32_t GetTextureTarget() const = 0; | 68 virtual uint32_t GetTextureTarget() const = 0; |
69 | 69 |
70 // Make the provided PictureBuffer draw the image that is represented by | 70 // Make the provided PictureBuffer draw the image that is represented by |
71 // the decoded output buffer at codec_buffer_index. | 71 // the decoded output buffer at codec_buffer_index. |
72 virtual void UseCodecBufferForPictureBuffer( | 72 virtual void UseCodecBufferForPictureBuffer( |
73 int32_t codec_buffer_index, | 73 int32_t codec_buffer_index, |
74 const media::PictureBuffer& picture_buffer) = 0; | 74 const media::PictureBuffer& picture_buffer) = 0; |
75 | 75 |
76 // Notify strategy that a picture buffer has been assigned. | 76 // Notify strategy that a picture buffer has been assigned. |
77 virtual void AssignOnePictureBuffer( | 77 virtual void AssignOnePictureBuffer( |
78 const media::PictureBuffer& picture_buffer) {} | 78 const media::PictureBuffer& picture_buffer, |
| 79 bool have_context) {} |
79 | 80 |
80 // Notify strategy that a picture buffer has been reused. | 81 // Notify strategy that a picture buffer has been reused. |
81 virtual void ReuseOnePictureBuffer( | 82 virtual void ReuseOnePictureBuffer( |
82 const media::PictureBuffer& picture_buffer) {} | 83 const media::PictureBuffer& picture_buffer) {} |
83 | 84 |
84 // Notify strategy that we are about to dismiss a picture buffer. | 85 // Notify strategy that we are about to dismiss a picture buffer. |
85 virtual void DismissOnePictureBuffer( | 86 virtual void DismissOnePictureBuffer( |
86 const media::PictureBuffer& picture_buffer) {} | 87 const media::PictureBuffer& picture_buffer) {} |
87 | 88 |
88 // Notify strategy that we have a new android MediaCodec instance. This | 89 // Notify strategy that we have a new android MediaCodec instance. This |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 341 |
341 // WeakPtrFactory for posting tasks back to |this|. | 342 // WeakPtrFactory for posting tasks back to |this|. |
342 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 343 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
343 | 344 |
344 friend class AndroidVideoDecodeAcceleratorTest; | 345 friend class AndroidVideoDecodeAcceleratorTest; |
345 }; | 346 }; |
346 | 347 |
347 } // namespace content | 348 } // namespace content |
348 | 349 |
349 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 350 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |