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

Side by Side Diff: ui/gfx/ozone/impl/dri_wrapper.h

Issue 49303002: [Ozone] Rename software implementation files to use Dri prefix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ifdef 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/impl/dri_surface_unittest.cc ('k') | ui/gfx/ozone/impl/dri_wrapper.cc » ('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 #ifndef UI_GFX_OZONE_IMPL_DRM_WRAPPER_OZONE_H_ 5 #ifndef UI_GFX_OZONE_IMPL_DRI_WRAPPER_H_
6 #define UI_GFX_OZONE_IMPL_DRM_WRAPPER_OZONE_H_ 6 #define UI_GFX_OZONE_IMPL_DRI_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 typedef struct _drmModeCrtc drmModeCrtc; 12 typedef struct _drmModeCrtc drmModeCrtc;
13 typedef struct _drmModeModeInfo drmModeModeInfo; 13 typedef struct _drmModeModeInfo drmModeModeInfo;
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 // Wraps DRM calls into a nice interface. Used to provide different 17 // Wraps DRM calls into a nice interface. Used to provide different
18 // implementations of the DRM calls. For the actual implementation the DRM API 18 // implementations of the DRM calls. For the actual implementation the DRM API
19 // would be called. In unit tests this interface would be stubbed. 19 // would be called. In unit tests this interface would be stubbed.
20 class DrmWrapperOzone { 20 class DriWrapper {
21 public: 21 public:
22 DrmWrapperOzone(const char* device_path); 22 DriWrapper(const char* device_path);
23 virtual ~DrmWrapperOzone(); 23 virtual ~DriWrapper();
24 24
25 // Get the CRTC state. This is generally used to save state before using the 25 // Get the CRTC state. This is generally used to save state before using the
26 // CRTC. When the user finishes using the CRTC, the user should restore the 26 // CRTC. When the user finishes using the CRTC, the user should restore the
27 // CRTC to it's initial state. Use |SetCrtc| to restore the state. 27 // CRTC to it's initial state. Use |SetCrtc| to restore the state.
28 virtual drmModeCrtc* GetCrtc(uint32_t crtc_id); 28 virtual drmModeCrtc* GetCrtc(uint32_t crtc_id);
29 29
30 // Frees the CRTC mode object. 30 // Frees the CRTC mode object.
31 virtual void FreeCrtc(drmModeCrtc* crtc); 31 virtual void FreeCrtc(drmModeCrtc* crtc);
32 32
33 // Used to configure CRTC with ID |crtc_id| to use the connector in 33 // Used to configure CRTC with ID |crtc_id| to use the connector in
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 uint64_t value); 70 uint64_t value);
71 71
72 int get_fd() const { return fd_; } 72 int get_fd() const { return fd_; }
73 73
74 protected: 74 protected:
75 // The file descriptor associated with this wrapper. All DRM operations will 75 // The file descriptor associated with this wrapper. All DRM operations will
76 // be performed using this FD. 76 // be performed using this FD.
77 int fd_; 77 int fd_;
78 78
79 private: 79 private:
80 DISALLOW_COPY_AND_ASSIGN(DrmWrapperOzone); 80 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
81 }; 81 };
82 82
83 } // namespace gfx 83 } // namespace gfx
84 84
85 #endif // UI_GFX_OZONE_IMPL_DRM_WRAPPER_OZONE_H_ 85 #endif // UI_GFX_OZONE_IMPL_DRI_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/gfx/ozone/impl/dri_surface_unittest.cc ('k') | ui/gfx/ozone/impl/dri_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698