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

Unified Diff: ui/ozone/platform/dri/hardware_display_controller.h

Issue 407603002: [Ozone-DRI] Migrate cursor to using ScanoutBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/dri/hardware_display_controller.h
diff --git a/ui/ozone/platform/dri/hardware_display_controller.h b/ui/ozone/platform/dri/hardware_display_controller.h
index cee71f8b0e389fd9991dd401a2f7ab055d1877b9..000c40c32ae4a2a7c83b72a1a208b36e320b337b 100644
--- a/ui/ozone/platform/dri/hardware_display_controller.h
+++ b/ui/ozone/platform/dri/hardware_display_controller.h
@@ -22,6 +22,7 @@ class Point;
namespace ui {
class NativePixmap;
+class ScanoutBuffer;
class ScanoutSurface;
typedef std::vector<scoped_refptr<NativePixmap> > NativePixmapList;
@@ -150,7 +151,7 @@ class HardwareDisplayController
unsigned int useconds);
// Set the hardware cursor to show the contents of |surface|.
- bool SetCursor(ScanoutSurface* surface);
+ bool SetCursor(scoped_refptr<ScanoutBuffer> buffer);
bool UnsetCursor();
@@ -187,6 +188,8 @@ class HardwareDisplayController
scoped_ptr<ScanoutSurface> surface_;
+ scoped_refptr<ScanoutBuffer> cursor_buffer_;
+
uint64_t time_of_last_flip_;
// Keeps track of the CRTC state. If a surface has been bound, then the value

Powered by Google App Engine
This is Rietveld 408576698