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_]) |