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

Unified Diff: cc/output/overlay_strategy_all_or_nothing.h

Issue 1430813002: cc: Fork OverlayCandidate to CALayerOverlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master1
Patch Set: Rebase Created 5 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_processor.cc ('k') | cc/output/overlay_strategy_all_or_nothing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_all_or_nothing.h
diff --git a/cc/output/overlay_strategy_all_or_nothing.h b/cc/output/overlay_strategy_all_or_nothing.h
deleted file mode 100644
index 23d2aa30eb1efd81c48d1874b70faf5c62577719..0000000000000000000000000000000000000000
--- a/cc/output/overlay_strategy_all_or_nothing.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
-#define CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
-
-#include "cc/output/overlay_processor.h"
-
-namespace cc {
-
-class OverlayCandidateValidator;
-
-// This strategy attempts to promote all quads into overlays.
-// If any quad can't be promoted, it returns false and no quads are promoted.
-class CC_EXPORT OverlayStrategyAllOrNothing
- : public OverlayProcessor::Strategy {
- public:
- explicit OverlayStrategyAllOrNothing(
- OverlayCandidateValidator* capability_checker);
- ~OverlayStrategyAllOrNothing() override;
-
- bool Attempt(ResourceProvider* resource_provider,
- RenderPassList* render_passes,
- OverlayCandidateList* candidate_list,
- gfx::Rect* damage_rect) override;
-
- private:
- OverlayCandidateValidator* capability_checker_; // Weak.
-
- DISALLOW_COPY_AND_ASSIGN(OverlayStrategyAllOrNothing);
-};
-
-} // namespace cc
-
-#endif // CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/output/overlay_strategy_all_or_nothing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698