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

Unified Diff: components/display_compositor/compositor_overlay_candidate_validator_ozone.cc

Issue 2745143003: cc: Make OverlayCandidate use gfx::BufferFormat instead of cc::ResourceFormat. (Closed)
Patch Set: 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
« 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 b044623a7dd2b383f3a90f712c2503e3585a98a0..901076af3ba7f0aad7fb74f3bfe95c3138f6a89a 100644
--- a/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
+++ b/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc
@@ -29,18 +29,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
@@ -111,7 +99,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;
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