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

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

Issue 371813004: ozone: gbm: Add overlay support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test code Created 6 years, 5 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
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 99f0ae7016f9cafc6b49c4fc2605b804337dd009..18d79eea9a56140d3fdbebe4ebf1852132f0db5d 100644
--- a/ui/ozone/platform/dri/gbm_surface.cc
+++ b/ui/ozone/platform/dri/gbm_surface.cc
@@ -81,6 +81,10 @@ gfx::Size GbmSurface::Size() const {
return size_;
}
+void GbmSurface::PreSwapBuffers() {
+ LockCurrentDrawable();
dnicoara 2014/07/07 19:17:54 Just move the contents of LockCurrentDrawable into
achaulk 2014/07/07 20:18:04 Done.
+}
+
void GbmSurface::SwapBuffers() {
// If there was a frontbuffer, is no longer active. Release it back to GBM.
if (buffers_[front_buffer_])

Powered by Google App Engine
This is Rietveld 408576698