| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 uint32_t DrmBuffer::GetHandle() const { | 101 uint32_t DrmBuffer::GetHandle() const { |
| 102 return handle_; | 102 return handle_; |
| 103 } | 103 } |
| 104 | 104 |
| 105 gfx::Size DrmBuffer::GetSize() const { | 105 gfx::Size DrmBuffer::GetSize() const { |
| 106 return gfx::Size(surface_->width(), surface_->height()); | 106 return gfx::Size(surface_->width(), surface_->height()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 const DrmDevice* DrmBuffer::GetDrmDevice() const { |
| 110 return drm_.get(); |
| 111 } |
| 112 |
| 109 bool DrmBuffer::RequiresGlFinish() const { | 113 bool DrmBuffer::RequiresGlFinish() const { |
| 110 return false; | 114 return false; |
| 111 } | 115 } |
| 112 | 116 |
| 113 } // namespace ui | 117 } // namespace ui |
| OLD | NEW |