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

Side by Side 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 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 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_buffer.h" 5 #include "ui/ozone/platform/dri/gbm_buffer.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_wrapper.h" 10 #include "ui/ozone/platform/dri/dri_wrapper.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 void* GbmBuffer::GetEGLClientBuffer() { 82 void* GbmBuffer::GetEGLClientBuffer() {
83 return bo_; 83 return bo_;
84 } 84 }
85 85
86 int GbmBuffer::GetDmaBufFd() { 86 int GbmBuffer::GetDmaBufFd() {
87 return -1; 87 return -1;
88 } 88 }
89 89
90 bool GbmBuffer::Initialize() {
91 return bo_ != NULL;
92 }
93
94 uint32_t GbmBuffer::GetFramebufferId() const {
95 return framebuffer_;
96 }
97
98 uint32_t GbmBuffer::GetHandle() const {
99 return handle_;
100 }
101
102 gfx::Size GbmBuffer::Size() const {
103 return size_;
104 }
105
106 void GbmBuffer::PreSwapBuffers() {
107 }
108
109 void GbmBuffer::SwapBuffers() {
110 }
111
90 } // namespace ui 112 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698