| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Notify strategy that a picture buffer has been assigned. | 81 // Notify strategy that a picture buffer has been assigned. |
| 82 virtual void AssignOnePictureBuffer( | 82 virtual void AssignOnePictureBuffer( |
| 83 const media::PictureBuffer& picture_buffer, | 83 const media::PictureBuffer& picture_buffer, |
| 84 bool have_context) {} | 84 bool have_context) {} |
| 85 | 85 |
| 86 // Notify strategy that a picture buffer has been reused. | 86 // Notify strategy that a picture buffer has been reused. |
| 87 virtual void ReuseOnePictureBuffer( | 87 virtual void ReuseOnePictureBuffer( |
| 88 const media::PictureBuffer& picture_buffer) {} | 88 const media::PictureBuffer& picture_buffer) {} |
| 89 | 89 |
| 90 // Attempts to free up codec output buffers by rendering early. |
| 91 virtual void MaybeRenderEarly() {} |
| 92 |
| 90 // Notify strategy that we have a new android MediaCodec instance. This | 93 // Notify strategy that we have a new android MediaCodec instance. This |
| 91 // happens when we're starting up or re-configuring mid-stream. Any | 94 // happens when we're starting up or re-configuring mid-stream. Any |
| 92 // previously provided codec should no longer be referenced. | 95 // previously provided codec should no longer be referenced. |
| 93 virtual void CodecChanged(media::VideoCodecBridge* codec) = 0; | 96 virtual void CodecChanged(media::VideoCodecBridge* codec) = 0; |
| 94 | 97 |
| 95 // Notify the strategy that a frame is available. This callback can happen | 98 // Notify the strategy that a frame is available. This callback can happen |
| 96 // on any thread at any time. | 99 // on any thread at any time. |
| 97 virtual void OnFrameAvailable() = 0; | 100 virtual void OnFrameAvailable() = 0; |
| 98 | 101 |
| 99 // Whether the pictures produced by this backing strategy are overlayable. | 102 // Whether the pictures produced by this backing strategy are overlayable. |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 385 |
| 383 // WeakPtrFactory for posting tasks back to |this|. | 386 // WeakPtrFactory for posting tasks back to |this|. |
| 384 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 387 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 385 | 388 |
| 386 friend class AndroidVideoDecodeAcceleratorTest; | 389 friend class AndroidVideoDecodeAcceleratorTest; |
| 387 }; | 390 }; |
| 388 | 391 |
| 389 } // namespace content | 392 } // namespace content |
| 390 | 393 |
| 391 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 394 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |