OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "content/common/gpu/media/vaapi_wrapper.h" | 5 #include "content/common/gpu/media/vaapi_wrapper.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <string.h> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
11 #include "base/command_line.h" | 12 #include "base/command_line.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/numerics/safe_conversions.h" | 15 #include "base/numerics/safe_conversions.h" |
15 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
17 // Auto-generated for dlopen libva libraries | 18 // Auto-generated for dlopen libva libraries |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 drm_fd_.reset(HANDLE_EINTR(dup(fd))); | 1269 drm_fd_.reset(HANDLE_EINTR(dup(fd))); |
1269 } | 1270 } |
1270 #endif // USE_OZONE | 1271 #endif // USE_OZONE |
1271 | 1272 |
1272 bool VaapiWrapper::VADisplayState::VAAPIVersionLessThan(int major, int minor) { | 1273 bool VaapiWrapper::VADisplayState::VAAPIVersionLessThan(int major, int minor) { |
1273 return (major_version_ < major) || | 1274 return (major_version_ < major) || |
1274 (major_version_ == major && minor_version_ < minor); | 1275 (major_version_ == major && minor_version_ < minor); |
1275 } | 1276 } |
1276 | 1277 |
1277 } // namespace content | 1278 } // namespace content |
OLD | NEW |