OLD | NEW |
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 Loading... |
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 |
OLD | NEW |