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

Unified Diff: cc/output/overlay_strategy_all_or_nothing.cc

Issue 1372103005: Refactor OverlayStrategySandwich and OverlayStrategyCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SolidColor
Patch Set: Delete OverlayStrategyCommon Created 5 years, 3 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_all_or_nothing.cc
diff --git a/cc/output/overlay_strategy_all_or_nothing.cc b/cc/output/overlay_strategy_all_or_nothing.cc
index bead0a707b6a3f5983a47c9aab4654b693f59c35..3550d4f508be4ff3eac46caac0eb28c419892d66 100644
--- a/cc/output/overlay_strategy_all_or_nothing.cc
+++ b/cc/output/overlay_strategy_all_or_nothing.cc
@@ -11,13 +11,14 @@ namespace cc {
OverlayStrategyAllOrNothing::OverlayStrategyAllOrNothing(
OverlayCandidateValidator* capability_checker)
- : capability_checker_(capability_checker) {}
+ : capability_checker_(capability_checker) {
+ DCHECK(capability_checker);
+}
OverlayStrategyAllOrNothing::~OverlayStrategyAllOrNothing() {}
bool OverlayStrategyAllOrNothing::Attempt(RenderPassList* render_passes,
- OverlayCandidateList* candidates,
- float device_scale_factor) {
+ OverlayCandidateList* candidates) {
QuadList& quad_list = render_passes->back()->quad_list;
OverlayCandidateList new_candidates;
int next_z_order = -1;

Powered by Google App Engine
This is Rietveld 408576698