| 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/drm/gpu/drm_buffer.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" |
| 6 | 6 |
| 7 #include <drm_fourcc.h> | 7 #include <drm_fourcc.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "third_party/skia/include/core/SkSurface.h" | 10 #include "third_party/skia/include/core/SkSurface.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 uint32_t DrmBuffer::GetOpaqueFramebufferId() const { | 102 uint32_t DrmBuffer::GetOpaqueFramebufferId() const { |
| 103 return framebuffer_; | 103 return framebuffer_; |
| 104 } | 104 } |
| 105 | 105 |
| 106 uint32_t DrmBuffer::GetOpaqueFramebufferPixelFormat() const { | 106 uint32_t DrmBuffer::GetOpaqueFramebufferPixelFormat() const { |
| 107 return fb_pixel_format_; | 107 return fb_pixel_format_; |
| 108 } | 108 } |
| 109 | 109 |
| 110 uint64_t DrmBuffer::GetFormatModifier() const { |
| 111 return DRM_FORMAT_MOD_NONE; |
| 112 } |
| 113 |
| 110 uint32_t DrmBuffer::GetHandle() const { | 114 uint32_t DrmBuffer::GetHandle() const { |
| 111 return handle_; | 115 return handle_; |
| 112 } | 116 } |
| 113 | 117 |
| 114 gfx::Size DrmBuffer::GetSize() const { | 118 gfx::Size DrmBuffer::GetSize() const { |
| 115 return gfx::Size(surface_->width(), surface_->height()); | 119 return gfx::Size(surface_->width(), surface_->height()); |
| 116 } | 120 } |
| 117 | 121 |
| 118 const DrmDevice* DrmBuffer::GetDrmDevice() const { | 122 const DrmDevice* DrmBuffer::GetDrmDevice() const { |
| 119 return drm_.get(); | 123 return drm_.get(); |
| 120 } | 124 } |
| 121 | 125 |
| 122 bool DrmBuffer::RequiresGlFinish() const { | 126 bool DrmBuffer::RequiresGlFinish() const { |
| 123 return false; | 127 return false; |
| 124 } | 128 } |
| 125 | 129 |
| 126 } // namespace ui | 130 } // namespace ui |
| OLD | NEW |