| 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,
|
|
|