| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 uint32_t DrmBuffer::GetFramebufferId() const { | 94 uint32_t DrmBuffer::GetFramebufferId() const { |
| 95 return framebuffer_; | 95 return framebuffer_; |
| 96 } | 96 } |
| 97 | 97 |
| 98 uint32_t DrmBuffer::GetFramebufferPixelFormat() const { | 98 uint32_t DrmBuffer::GetFramebufferPixelFormat() const { |
| 99 return fb_pixel_format_; | 99 return fb_pixel_format_; |
| 100 } | 100 } |
| 101 | 101 |
| 102 uint32_t DrmBuffer::GetOpaqueFramebufferId() const { |
| 103 return framebuffer_; |
| 104 } |
| 105 |
| 106 uint32_t DrmBuffer::GetOpaqueFramebufferPixelFormat() const { |
| 107 return fb_pixel_format_; |
| 108 } |
| 109 |
| 102 uint32_t DrmBuffer::GetHandle() const { | 110 uint32_t DrmBuffer::GetHandle() const { |
| 103 return handle_; | 111 return handle_; |
| 104 } | 112 } |
| 105 | 113 |
| 106 gfx::Size DrmBuffer::GetSize() const { | 114 gfx::Size DrmBuffer::GetSize() const { |
| 107 return gfx::Size(surface_->width(), surface_->height()); | 115 return gfx::Size(surface_->width(), surface_->height()); |
| 108 } | 116 } |
| 109 | 117 |
| 110 const DrmDevice* DrmBuffer::GetDrmDevice() const { | 118 const DrmDevice* DrmBuffer::GetDrmDevice() const { |
| 111 return drm_.get(); | 119 return drm_.get(); |
| 112 } | 120 } |
| 113 | 121 |
| 114 bool DrmBuffer::RequiresGlFinish() const { | 122 bool DrmBuffer::RequiresGlFinish() const { |
| 115 return false; | 123 return false; |
| 116 } | 124 } |
| 117 | 125 |
| 118 } // namespace ui | 126 } // namespace ui |
| OLD | NEW |