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

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
index e3a2b28595edf7de145a172381c6074e3c53ae18..17bdd2acf7df475c8e880ba41e1c08dbfa7b5771 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
@@ -95,8 +95,11 @@ bool HardwareDisplayPlaneManagerAtomic::SetPlaneData(
CrtcController* crtc) {
HardwareDisplayPlaneAtomic* atomic_plane =
static_cast<HardwareDisplayPlaneAtomic*>(hw_plane);
+ uint32_t framebuffer_id = overlay.z_order
+ ? overlay.buffer->GetFramebufferId()
+ : overlay.buffer->GetOpaqueFramebufferId();
if (!atomic_plane->SetPlaneData(plane_list->atomic_property_set.get(),
- crtc_id, overlay.buffer->GetFramebufferId(),
+ crtc_id, framebuffer_id,
overlay.display_bounds, src_rect)) {
LOG(ERROR) << "Failed to set plane properties";
return false;
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer_base.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698