Skip to content

Commit

Permalink
android/overlays: Add more overlay strategies.
Browse files Browse the repository at this point in the history
Add more strategies for deciding how to overlay video quads on android.

R=piman@chromium.org

Bug: 889328
Change-Id: Iafa92f1f79cbc457099eb214241396e4000a2b1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510094
Auto-Submit: Khushal <khushalsagar@chromium.org>
Commit-Queue: Antoine Labour <piman@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638932}
  • Loading branch information
khushalsagar authored and Commit Bot committed Mar 8, 2019
1 parent 8e96b42 commit 771a8fd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "components/viz/service/display_embedder/gl_output_surface_buffer_queue_android.h"

#include "components/viz/service/display/overlay_strategy_fullscreen.h"
#include "components/viz/service/display/overlay_strategy_single_on_top.h"
#include "components/viz/service/display/overlay_strategy_underlay.h"
#include "components/viz/service/display_embedder/compositor_overlay_candidate_validator_android.h"
Expand All @@ -19,6 +20,9 @@ class OverlayCandidateValidatorImpl : public OverlayCandidateValidator {
~OverlayCandidateValidatorImpl() override = default;

void GetStrategies(OverlayProcessor::StrategyList* strategies) override {
// Added in priority order, most to least desirable.
strategies->push_back(std::make_unique<OverlayStrategyFullscreen>(this));
strategies->push_back(std::make_unique<OverlayStrategySingleOnTop>(this));
strategies->push_back(std::make_unique<OverlayStrategyUnderlay>(
this, OverlayStrategyUnderlay::OpaqueMode::AllowTransparentCandidates));
}
Expand Down

0 comments on commit 771a8fd

Please sign in to comment.