OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "media/video/video_decode_accelerator.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class CONTENT_EXPORT VideoDecodeAcceleratorImpl |
| 14 : public media::VideoDecodeAccelerator { |
| 15 public: |
| 16 VideoDecodeAcceleratorImpl(); |
| 17 virtual ~VideoDecodeAcceleratorImpl(); |
| 18 |
| 19 // Returns true if media::VideoDecodeAccelerator::Decode can run on the IO |
| 20 // thread. Otherwise Decode will run on the GPU child thread. The purpose of |
| 21 // running Decode on the IO thread is to reduce decode latency. Note Decode |
| 22 // should return as soon as possible and not block on the IO thread. |
| 23 virtual bool CanDecodeOnIOThread(); |
| 24 }; |
| 25 |
| 26 } // namespace content |
| 27 |
| 28 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ |
OLD | NEW |