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

Unified Diff: cc/output/overlay_strategy_fullscreen.cc

Issue 2476103002: Disable fullscren fb optimization with sw mirroring. (Closed)
Patch Set: We now call CheckOverlaySupport. Created 4 years, 1 month 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_strategy_fullscreen.h ('k') | cc/output/overlay_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_fullscreen.cc
diff --git a/cc/output/overlay_strategy_fullscreen.cc b/cc/output/overlay_strategy_fullscreen.cc
index 9bc6cd61ad9889035a47770343abecab8afe9d6a..f16857c2567aeae254cc58593b0ead57a19117ae 100644
--- a/cc/output/overlay_strategy_fullscreen.cc
+++ b/cc/output/overlay_strategy_fullscreen.cc
@@ -13,7 +13,11 @@
namespace cc {
-OverlayStrategyFullscreen::OverlayStrategyFullscreen() {}
+OverlayStrategyFullscreen::OverlayStrategyFullscreen(
+ OverlayCandidateValidator* capability_checker)
+ : capability_checker_(capability_checker) {
+ DCHECK(capability_checker);
+}
OverlayStrategyFullscreen::~OverlayStrategyFullscreen() {}
@@ -52,7 +56,12 @@ bool OverlayStrategyFullscreen::Attempt(ResourceProvider* resource_provider,
candidate.overlay_handled = true;
OverlayCandidateList new_candidate_list;
new_candidate_list.push_back(candidate);
+ capability_checker_->CheckOverlaySupport(&new_candidate_list);
+ if (!new_candidate_list.front().overlay_handled)
+ return false;
+
candidate_list->swap(new_candidate_list);
+
render_pass->quad_list = QuadList(); // Remove all the quads
return true;
}
« no previous file with comments | « cc/output/overlay_strategy_fullscreen.h ('k') | cc/output/overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698