| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 ILLEGAL_STATE = 1, | 82 ILLEGAL_STATE = 1, |
| 83 // Invalid argument was passed to an API method. | 83 // Invalid argument was passed to an API method. |
| 84 INVALID_ARGUMENT, | 84 INVALID_ARGUMENT, |
| 85 // Encoded input is unreadable. | 85 // Encoded input is unreadable. |
| 86 UNREADABLE_INPUT, | 86 UNREADABLE_INPUT, |
| 87 // A failure occurred at the browser layer or one of its dependencies. | 87 // A failure occurred at the browser layer or one of its dependencies. |
| 88 // Examples of such failures include GPU hardware failures, GPU driver | 88 // Examples of such failures include GPU hardware failures, GPU driver |
| 89 // failures, GPU library failures, browser programming errors, and so on. | 89 // failures, GPU library failures, browser programming errors, and so on. |
| 90 PLATFORM_FAILURE, | 90 PLATFORM_FAILURE, |
| 91 // Largest used enum. This should be adjusted when new errors are added. | 91 // Largest used enum. This should be adjusted when new errors are added. |
| 92 LARGEST_ERROR_ENUM, | 92 ERROR_MAX = PLATFORM_FAILURE, |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // Config structure contains parameters required for the VDA initialization. | 95 // Config structure contains parameters required for the VDA initialization. |
| 96 struct MEDIA_EXPORT Config { | 96 struct MEDIA_EXPORT Config { |
| 97 enum { kNoSurfaceID = SurfaceManager::kNoSurfaceID }; | 97 enum { kNoSurfaceID = SurfaceManager::kNoSurfaceID }; |
| 98 | 98 |
| 99 Config() = default; | 99 Config() = default; |
| 100 Config(VideoCodecProfile profile); | 100 Config(VideoCodecProfile profile); |
| 101 Config(const VideoDecoderConfig& video_decoder_config); | 101 Config(const VideoDecoderConfig& video_decoder_config); |
| 102 | 102 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 257 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
| 258 // uses "Destroy()" instead of trying to use the destructor. | 258 // uses "Destroy()" instead of trying to use the destructor. |
| 259 template <> | 259 template <> |
| 260 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 260 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 261 void operator()(media::VideoDecodeAccelerator* vda) const; | 261 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 } // namespace std | 264 } // namespace std |
| 265 | 265 |
| 266 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 266 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |