Skip to content

Commit

Permalink
Generalize OutputPresenterFuchsia
Browse files Browse the repository at this point in the history
The current OutputPresenterFuchsia is tightly coupled with using the
Ozone scenic backend. Change OutputPresenterFuchsia to use existing and
new Ozone APIs to be serve as a base for general Ozone+Vulkan
presentation. The immediate goal is support both Ozone+Fuchsia scenic
and flatland backends.

The buffer allocation is switched to use the existing
SurfaceFactoryOzone::CreateNativePixmap() method. The presentation of
primary+overlay planes is moved to a new
PlatformWindowSurface::Present() method.

OutputPresenterFuchsia could become something like
OutputPresenterVulkanOzone in the future, since there is almost nothing
specific to Fuchsia left in it.

Bug: 1249158
Change-Id: I9ebc339672102cd8de1f6517c0eed7d085fc9d70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3191190
Commit-Queue: kylechar <kylechar@chromium.org>
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Emircan Uysaler <emircan@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#933132}
  • Loading branch information
kylechar authored and Chromium LUCI CQ committed Oct 19, 2021
1 parent 6d00427 commit 3fae362
Show file tree
Hide file tree
Showing 17 changed files with 496 additions and 360 deletions.
6 changes: 0 additions & 6 deletions components/viz/service/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,6 @@ viz_source_set("gpu_service_dependencies") {
"display_embedder/output_presenter_fuchsia.cc",
"display_embedder/output_presenter_fuchsia.h",
]

deps += [
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.images",
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem",
"//third_party/fuchsia-sdk/sdk/pkg/sys_inspect_cpp",
]
}
}

Expand Down
Loading

0 comments on commit 3fae362

Please sign in to comment.