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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_buffer.cc

Issue 2951193002: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698