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

Side by Side Diff: ui/ozone/platform/dri/dri_wrapper.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 unified diff | Download patch | Annotate | Revision Log
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_DRI_WRAPPER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // associated with the property with name |name|. Return NULL if the property 97 // associated with the property with name |name|. Return NULL if the property
98 // could not be found or if the property does not have a binary blob. If valid 98 // could not be found or if the property does not have a binary blob. If valid
99 // the returned object must be freed using FreePropertyBlob(). 99 // the returned object must be freed using FreePropertyBlob().
100 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector, 100 virtual ScopedDrmPropertyBlobPtr GetPropertyBlob(drmModeConnector* connector,
101 const char* name); 101 const char* name);
102 102
103 // Set the cursor to be displayed in CRTC |crtc_id|. (width, height) is the 103 // Set the cursor to be displayed in CRTC |crtc_id|. (width, height) is the
104 // cursor size pointed by |handle|. 104 // cursor size pointed by |handle|.
105 virtual bool SetCursor(uint32_t crtc_id, 105 virtual bool SetCursor(uint32_t crtc_id,
106 uint32_t handle, 106 uint32_t handle,
107 uint32_t width, 107 const gfx::Size& size);
108 uint32_t height);
109 108
110 109
111 // Move the cursor on CRTC |crtc_id| to (x, y); 110 // Move the cursor on CRTC |crtc_id| to (x, y);
112 virtual bool MoveCursor(uint32_t crtc_id, int x, int y); 111 virtual bool MoveCursor(uint32_t crtc_id, const gfx::Point& point);
113 112
114 virtual void HandleEvent(drmEventContext& event); 113 virtual void HandleEvent(drmEventContext& event);
115 114
116 virtual bool CreateDumbBuffer(const SkImageInfo& info, 115 virtual bool CreateDumbBuffer(const SkImageInfo& info,
117 uint32_t* handle, 116 uint32_t* handle,
118 uint32_t* stride, 117 uint32_t* stride,
119 void** pixels); 118 void** pixels);
120 119
121 virtual void DestroyDumbBuffer(const SkImageInfo& info, 120 virtual void DestroyDumbBuffer(const SkImageInfo& info,
122 uint32_t handle, 121 uint32_t handle,
123 uint32_t stride, 122 uint32_t stride,
124 void* pixels); 123 void* pixels);
125 124
126 int get_fd() const { return fd_; } 125 int get_fd() const { return fd_; }
127 126
128 protected: 127 protected:
129 // The file descriptor associated with this wrapper. All DRM operations will 128 // The file descriptor associated with this wrapper. All DRM operations will
130 // be performed using this FD. 129 // be performed using this FD.
131 int fd_; 130 int fd_;
132 131
133 private: 132 private:
134 DISALLOW_COPY_AND_ASSIGN(DriWrapper); 133 DISALLOW_COPY_AND_ASSIGN(DriWrapper);
135 }; 134 };
136 135
137 } // namespace ui 136 } // namespace ui
138 137
139 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_ 138 #endif // UI_OZONE_PLATFORM_DRI_DRI_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698