| OLD | NEW |
| 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 #include "ui/ozone/platform/dri/gbm_surface.h" | 5 #include "ui/ozone/platform/dri/gbm_surface.h" |
| 6 | 6 |
| 7 #include <gbm.h> | 7 #include <gbm.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "ui/ozone/platform/dri/dri_buffer.h" | 10 #include "ui/ozone/platform/dri/dri_buffer.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return false; | 151 return false; |
| 152 | 152 |
| 153 // If there was a frontbuffer, it is no longer active. Release it back to GBM. | 153 // If there was a frontbuffer, it is no longer active. Release it back to GBM. |
| 154 if (current_buffer_) | 154 if (current_buffer_) |
| 155 gbm_surface_release_buffer(native_surface_, current_buffer_); | 155 gbm_surface_release_buffer(native_surface_, current_buffer_); |
| 156 | 156 |
| 157 current_buffer_ = pending_buffer; | 157 current_buffer_ = pending_buffer; |
| 158 return true; | 158 return true; |
| 159 } | 159 } |
| 160 | 160 |
| 161 void GbmSurface::SetPageFlipCompletionCallback( |
| 162 const PageFlipCompletionCallback& callback) { |
| 163 } |
| 164 |
| 161 } // namespace ui | 165 } // namespace ui |
| OLD | NEW |