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

Side by Side Diff: cc/output/overlay_strategy_all_or_nothing.h

Issue 1373373003: Mac Overlays: Add AllOrNothing strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@OverlayTest
Patch Set: Rebase off master Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | cc/output/overlay_strategy_all_or_nothing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
7
8 #include "cc/output/overlay_processor.h"
9
10 namespace cc {
11
12 class OverlayCandidateValidator;
13
14 // This strategy attempts to promote all quads into overlays.
15 // If any quad can't be promoted, it returns false and no quads are promoted.
16 class CC_EXPORT OverlayStrategyAllOrNothing
17 : public OverlayProcessor::Strategy {
18 public:
19 explicit OverlayStrategyAllOrNothing(
20 OverlayCandidateValidator* capability_checker);
21 ~OverlayStrategyAllOrNothing() override;
22
23 bool Attempt(RenderPassList* render_passes,
24 OverlayCandidateList* candidate_list,
25 float device_scale_factor) override;
26
27 private:
28 OverlayCandidateValidator* capability_checker_; // Weak.
29
30 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyAllOrNothing);
31 };
32
33 } // namespace cc
34
35 #endif // CC_OUTPUT_OVERLAY_STRATEGY_ALL_OR_NOTHING_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate.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