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

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

Issue 2743403005: ozone: Add an opaque fb to ScanoutBuffer for primary planes. (Closed)
Patch Set: Replace PrimaryPlane with Opaque. Created 3 years, 9 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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.h ('k') | ui/ozone/platform/drm/gpu/drm_overlay_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698