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

Unified Diff: cc/output/overlay_strategy_single_on_top.h

Issue 855403002: cc: Change the restrictions on overlays for video (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove DEBUG_BORDER skip Created 5 years, 11 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: cc/output/overlay_strategy_single_on_top.h
diff --git a/cc/output/overlay_strategy_single_on_top.h b/cc/output/overlay_strategy_single_on_top.h
index e5518cc5c9b2557afc1867b172b32a7acdf13448..db8e4630c7092c2dc5318aaeb6a85843ad62fe57 100644
--- a/cc/output/overlay_strategy_single_on_top.h
+++ b/cc/output/overlay_strategy_single_on_top.h
@@ -23,6 +23,14 @@ class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy {
OverlayCandidateList* candidate_list) override;
private:
+ bool IsOverlayQuad(const DrawQuad* draw_quad);
+ bool GetCandidateQuadInfo(const DrawQuad& draw_quad,
+ OverlayCandidate* quad_info);
+
+ // Returns true if |draw_quad| will block quads underheath from becoming an
danakj 2015/01/21 23:30:33 underneath
+ // overlay.
+ bool QuadBlocksOverlay(const DrawQuad* draw_quad);
danakj 2015/01/21 23:30:33 nit: start with a verb: DoesQuadBlockOverlay
achaulk 2015/01/23 20:10:55 Done.
+
OverlayCandidateValidator* capability_checker_;
ResourceProvider* resource_provider_;
DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);

Powered by Google App Engine
This is Rietveld 408576698