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

Unified Diff: components/display_compositor/compositor_overlay_candidate_validator_ozone.cc

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: Created 3 years, 10 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
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
diff --git a/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc b/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
index a8f12b7e9ecb1f12e426441d471a1fe402869290..a1d1bb5e1f03c7e0805894ef23a794cce213afd9 100644
--- a/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
+++ b/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
@@ -28,18 +28,6 @@ std::unique_ptr<cc::OverlayProcessor::Strategy> MakeOverlayStrategy(
} // namespace
-static gfx::BufferFormat GetBufferFormat(cc::ResourceFormat overlay_format) {
- switch (overlay_format) {
- // TODO(dshwang): overlay video still uses RGBA_8888.
- case cc::RGBA_8888:
- case cc::BGRA_8888:
- return gfx::BufferFormat::BGRA_8888;
- default:
- NOTREACHED();
- return gfx::BufferFormat::BGRA_8888;
- }
-}
-
// |overlay_candidates| is an object used to answer questions about possible
// overlays configuarations.
// |strategies_string| is a comma-separated string containing all the overaly
@@ -103,7 +91,7 @@ void CompositorOverlayCandidateValidatorOzone::CheckOverlaySupport(
for (size_t i = 0; i < surfaces->size(); i++) {
ozone_surface_list.at(i).transform = surfaces->at(i).transform;
- ozone_surface_list.at(i).format = GetBufferFormat(surfaces->at(i).format);
+ ozone_surface_list.at(i).format = surfaces->at(i).format;
Daniele Castagna 2017/02/08 18:59:48 This would now pass the format even if it's not an
dshwang 2017/02/09 00:03:54 Yes, DrmOverlayManager::CheckOverlaySupport() chec
ozone_surface_list.at(i).display_rect = surfaces->at(i).display_rect;
ozone_surface_list.at(i).crop_rect = surfaces->at(i).uv_rect;
ozone_surface_list.at(i).quad_rect_in_target_space =
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698