Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1489)

Side by Side Diff: ui/gfx/ozone/dri/dri_wrapper.cc

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/ozone/dri/dri_wrapper.h ('k') | ui/gfx/ozone/dri/hardware_display_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/gfx/ozone/dri/dri_wrapper.h ('k') | ui/gfx/ozone/dri/hardware_display_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698