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

Side by Side Diff: ui/ozone/platform/dri/hardware_display_controller.h

Issue 535963002: ozone: Directly provide size of active mode from HardwareDisplayController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <xf86drmMode.h> 10 #include <xf86drmMode.h>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool UnsetCursor(); 160 bool UnsetCursor();
161 161
162 // Moves the hardware cursor to |location|. 162 // Moves the hardware cursor to |location|.
163 bool MoveCursor(const gfx::Point& location); 163 bool MoveCursor(const gfx::Point& location);
164 164
165 void AddCrtc(scoped_ptr<CrtcState> state); 165 void AddCrtc(scoped_ptr<CrtcState> state);
166 scoped_ptr<CrtcState> RemoveCrtc(uint32_t crtc); 166 scoped_ptr<CrtcState> RemoveCrtc(uint32_t crtc);
167 bool HasCrtc(uint32_t crtc) const; 167 bool HasCrtc(uint32_t crtc) const;
168 bool IsMirrored() const; 168 bool IsMirrored() const;
169 bool IsDisabled() const; 169 bool IsDisabled() const;
170 gfx::Size GetModeSize() const;
170 171
171 gfx::Point origin() const { return origin_; } 172 gfx::Point origin() const { return origin_; }
172 void set_origin(const gfx::Point& origin) { origin_ = origin; } 173 void set_origin(const gfx::Point& origin) { origin_ = origin; }
173 174
174 const drmModeModeInfo& get_mode() const { return mode_; }; 175 const drmModeModeInfo& get_mode() const { return mode_; };
175 uint64_t get_time_of_last_flip() const { 176 uint64_t get_time_of_last_flip() const {
176 return time_of_last_flip_; 177 return time_of_last_flip_;
177 }; 178 };
178 179
179 private: 180 private:
(...skipping 29 matching lines...) Expand all
209 // 2) decremented when the page flip callback is triggered, 210 // 2) decremented when the page flip callback is triggered,
210 // 3) reset to 0 when a drmModeSetCrtc is called (via the DriWrapper). 211 // 3) reset to 0 when a drmModeSetCrtc is called (via the DriWrapper).
211 uint32_t pending_page_flips_; 212 uint32_t pending_page_flips_;
212 213
213 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); 214 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController);
214 }; 215 };
215 216
216 } // namespace ui 217 } // namespace ui
217 218
218 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 219 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.cc ('k') | ui/ozone/platform/dri/hardware_display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698