| Index: ui/ozone/platform/dri/gbm_surface.cc
|
| diff --git a/ui/ozone/platform/dri/gbm_surface.cc b/ui/ozone/platform/dri/gbm_surface.cc
|
| index 53cd08f0150bd40bf67184b3b1f44d84c54af3f7..18d00e6eb7bee4fcde80d97cb75265bb15983311 100644
|
| --- a/ui/ozone/platform/dri/gbm_surface.cc
|
| +++ b/ui/ozone/platform/dri/gbm_surface.cc
|
| @@ -135,9 +135,9 @@ bool GbmSurface::OnSwapBuffers() {
|
| gbm_bo* pending_buffer = gbm_surface_lock_front_buffer(native_surface_);
|
| scoped_refptr<GbmSurfaceBuffer> primary =
|
| GbmSurfaceBuffer::GetBuffer(pending_buffer);
|
| - if (!primary) {
|
| + if (!primary.get()) {
|
| primary = GbmSurfaceBuffer::CreateBuffer(dri_, pending_buffer);
|
| - if (!primary) {
|
| + if (!primary.get()) {
|
| LOG(ERROR) << "Failed to associate the buffer with the controller";
|
| return false;
|
| }
|
|
|