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

Side by Side Diff: ui/ozone/platform/dri/gbm_surface.cc

Issue 781683005: Ozone: Avoid blocking in Swapbuffer Call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintended changes. Created 6 years 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
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698