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

Unified Diff: ui/gfx/ozone/dri/dri_surface_factory.h

Issue 208553004: ozone: dri: Do initial cursor set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/ozone/dri/dri_surface_factory.h
diff --git a/ui/gfx/ozone/dri/dri_surface_factory.h b/ui/gfx/ozone/dri/dri_surface_factory.h
index 4981394a78a51e1e12e5c74d918a8a61ee1e013e..3b958bdc691a1a91c3f75f1bb957be0f260cb0a3 100644
--- a/ui/gfx/ozone/dri/dri_surface_factory.h
+++ b/ui/gfx/ozone/dri/dri_surface_factory.h
@@ -6,6 +6,7 @@
#define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_
#include "base/memory/scoped_ptr.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/ozone/surface_factory_ozone.h"
namespace gfx {
@@ -67,6 +68,9 @@ class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
// pending frame.
virtual void WaitForPageFlipEvent(int fd);
+ // Draw the last set cursor & update the cursor plane.
+ void ResetCursor();
+
scoped_ptr<DriWrapper> drm_;
HardwareState state_;
@@ -76,6 +80,9 @@ class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
scoped_ptr<DriSurface> cursor_surface_;
+ SkBitmap cursor_bitmap_;
+ gfx::Point cursor_location_;
+
DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
};

Powered by Google App Engine
This is Rietveld 408576698