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

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

Issue 400283002: [Ozone-GBM] Migrate GBM buffers to use the ScanoutBuffer interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.h
diff --git a/ui/ozone/platform/dri/gbm_surface.h b/ui/ozone/platform/dri/gbm_surface.h
index 8b8dffcad8a88fb71ee98dde4c5e4ea90ee71f98..c9472b53698333415a92c42a1c79406e2295d5e9 100644
--- a/ui/ozone/platform/dri/gbm_surface.h
+++ b/ui/ozone/platform/dri/gbm_surface.h
@@ -38,6 +38,8 @@ class GbmSurface : public ScanoutSurface {
gbm_surface* native_surface() { return native_surface_; };
private:
+ class GbmSurfaceBuffer;
alexst (slow to review) 2014/07/18 21:11:31 I would prefer you declared it here fully, it shou
dnicoara 2014/07/18 21:48:28 Done.
+
gbm_device* gbm_device_;
DriWrapper* dri_;
@@ -49,7 +51,7 @@ class GbmSurface : public ScanoutSurface {
// Backing GBM buffers. One is the current front buffer. The other is the
// current backbuffer that is pending scan out.
- gbm_bo* buffers_[2];
+ scoped_refptr<GbmSurfaceBuffer> buffers_[2];
// Index to the front buffer.
int front_buffer_;

Powered by Google App Engine
This is Rietveld 408576698