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

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

Issue 371813004: ozone: gbm: Add overlay support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test build 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
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.h ('k') | ui/ozone/platform/dri/gbm_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_buffer.cc
diff --git a/ui/ozone/platform/dri/gbm_buffer.cc b/ui/ozone/platform/dri/gbm_buffer.cc
index f75ca95698cfe75d93f2516a981406bdc4646e2b..53c0f25e3b93aa6783637ebb26254515c3bf2184 100644
--- a/ui/ozone/platform/dri/gbm_buffer.cc
+++ b/ui/ozone/platform/dri/gbm_buffer.cc
@@ -79,11 +79,40 @@ bool GbmBuffer::InitializeBuffer(SurfaceFactoryOzone::BufferFormat format,
return true;
}
-void* GbmBuffer::GetEGLClientBuffer() {
- return bo_;
+bool GbmBuffer::Initialize() {
+ return bo_ != NULL;
}
-int GbmBuffer::GetDmaBufFd() {
+uint32_t GbmBuffer::GetFramebufferId() const {
+ return framebuffer_;
+}
+
+uint32_t GbmBuffer::GetHandle() const {
+ return handle_;
+}
+
+gfx::Size GbmBuffer::Size() const {
+ return size_;
+}
+
+void GbmBuffer::PreSwapBuffers() {
+}
+
+void GbmBuffer::SwapBuffers() {
+}
+
+GbmPixmap::GbmPixmap(gbm_device* device, DriWrapper* dri, const gfx::Size& size)
+ : buffer_(device, dri, size) {
+}
+
+GbmPixmap::~GbmPixmap() {
+}
+
+void* GbmPixmap::GetEGLClientBuffer() {
+ return buffer_.bo();
+}
+
+int GbmPixmap::GetDmaBufFd() {
return -1;
}
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.h ('k') | ui/ozone/platform/dri/gbm_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698