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

Unified Diff: ui/ozone/platform/dri/dri_wrapper.cc

Issue 276753003: [Ozone-DRI] Move framebuffer initialization into the buffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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
« no previous file with comments | « ui/ozone/platform/dri/dri_wrapper.h ('k') | ui/ozone/platform/dri/hardware_display_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_wrapper.cc
diff --git a/ui/ozone/platform/dri/dri_wrapper.cc b/ui/ozone/platform/dri/dri_wrapper.cc
index 38524de426f1bf395ba6e6a468fef023d0371eed..ddb471dbdfff454059409cc266c5a425d586f807 100644
--- a/ui/ozone/platform/dri/dri_wrapper.cc
+++ b/ui/ozone/platform/dri/dri_wrapper.cc
@@ -55,16 +55,17 @@ bool DriWrapper::DisableCrtc(uint32_t crtc_id) {
return !drmModeSetCrtc(fd_, crtc_id, 0, 0, 0, NULL, 0, NULL);
}
-bool DriWrapper::AddFramebuffer(const drmModeModeInfo& mode,
- uint8_t depth,
- uint8_t bpp,
- uint32_t stride,
- uint32_t handle,
- uint32_t* framebuffer) {
+bool DriWrapper::AddFramebuffer(uint32_t width,
+ uint32_t height,
+ uint8_t depth,
+ uint8_t bpp,
+ uint32_t stride,
+ uint32_t handle,
+ uint32_t* framebuffer) {
CHECK(fd_ >= 0);
return !drmModeAddFB(fd_,
- mode.hdisplay,
- mode.vdisplay,
+ width,
+ height,
depth,
bpp,
stride,
@@ -78,8 +79,8 @@ bool DriWrapper::RemoveFramebuffer(uint32_t framebuffer) {
}
bool DriWrapper::PageFlip(uint32_t crtc_id,
- uint32_t framebuffer,
- void* data) {
+ uint32_t framebuffer,
+ void* data) {
CHECK(fd_ >= 0);
return !drmModePageFlip(fd_,
crtc_id,
« no previous file with comments | « ui/ozone/platform/dri/dri_wrapper.h ('k') | ui/ozone/platform/dri/hardware_display_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698