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

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

Issue 208553004: ozone: dri: Do initial cursor set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move cursor swap buffers Created 6 years, 9 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 | Annotate | Revision Log
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_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 5 #ifndef UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_
6 #define UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 6 #define UI_GFX_OZONE_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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // kernel when a VBlank event finished. This allows the controller to 140 // kernel when a VBlank event finished. This allows the controller to
141 // update internal state and propagate the update to the surface. 141 // update internal state and propagate the update to the surface.
142 // The tuple (seconds, useconds) represents the event timestamp. |seconds| 142 // The tuple (seconds, useconds) represents the event timestamp. |seconds|
143 // represents the number of seconds while |useconds| represents the 143 // represents the number of seconds while |useconds| represents the
144 // microseconds (< 1 second) in the timestamp. 144 // microseconds (< 1 second) in the timestamp.
145 void OnPageFlipEvent(unsigned int frame, 145 void OnPageFlipEvent(unsigned int frame,
146 unsigned int seconds, 146 unsigned int seconds,
147 unsigned int useconds); 147 unsigned int useconds);
148 148
149 // Set the hardware cursor to show the contents of |surface|. 149 // Set the hardware cursor to show the contents of |surface|.
150 bool SetCursor(const DriSurface& surface); 150 bool SetCursor(DriSurface* surface);
151 151
152 bool UnsetCursor(); 152 bool UnsetCursor();
153 153
154 // Moves the hardware cursor to |location|. 154 // Moves the hardware cursor to |location|.
155 bool MoveCursor(const gfx::Point& location); 155 bool MoveCursor(const gfx::Point& location);
156 156
157 State get_state() const { return state_; }; 157 State get_state() const { return state_; };
158 158
159 int get_fd() const { return drm_->get_fd(); }; 159 int get_fd() const { return drm_->get_fd(); };
160 160
(...skipping 29 matching lines...) Expand all
190 scoped_ptr<DriSurface> surface_; 190 scoped_ptr<DriSurface> surface_;
191 191
192 uint64_t time_of_last_flip_; 192 uint64_t time_of_last_flip_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController); 194 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayController);
195 }; 195 };
196 196
197 } // namespace gfx 197 } // namespace gfx
198 198
199 #endif // UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_ 199 #endif // UI_GFX_OZONE_DRI_HARDWARE_DISPLAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.cc ('k') | ui/gfx/ozone/dri/hardware_display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698