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 "ui/gfx/ozone/impl/dri_wrapper.h" | 5 #include "ui/gfx/ozone/dri/dri_wrapper.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 #include <xf86drmMode.h> | 9 #include <xf86drmMode.h> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 DriWrapper::DriWrapper(const char* device_path) { | 15 DriWrapper::DriWrapper(const char* device_path) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 bool DriWrapper::ConnectorSetProperty(uint32_t connector_id, | 86 bool DriWrapper::ConnectorSetProperty(uint32_t connector_id, |
87 uint32_t property_id, | 87 uint32_t property_id, |
88 uint64_t value) { | 88 uint64_t value) { |
89 CHECK(fd_ >= 0); | 89 CHECK(fd_ >= 0); |
90 return !drmModeConnectorSetProperty(fd_, connector_id, property_id, value); | 90 return !drmModeConnectorSetProperty(fd_, connector_id, property_id, value); |
91 } | 91 } |
92 | 92 |
93 } // namespace gfx | 93 } // namespace gfx |
OLD | NEW |