BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / cc / output / overlay_candidate_validator.h
blob8586b4de1703d9f31b3bd4841fcc7ed73a2b8866
1 // Copyright 2014 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.
5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_
6 #define CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_
8 #include <vector>
10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h"
12 #include "cc/output/overlay_processor.h"
14 namespace cc {
16 // This class that can be used to answer questions about possible overlay
17 // configurations for a particular output device.
18 class CC_EXPORT OverlayCandidateValidator {
19 public:
20 // Populates a list of strategies that may work with this validator.
21 virtual void GetStrategies(OverlayProcessor::StrategyList* strategies) = 0;
23 // A list of possible overlay candidates is presented to this function.
24 // The expected result is that those candidates that can be in a separate
25 // plane are marked with |overlay_handled| set to true, otherwise they are
26 // to be traditionally composited. Candidates with |overlay_handled| set to
27 // true must also have their |display_rect| converted to integer
28 // coordinates if necessary.
29 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0;
31 virtual ~OverlayCandidateValidator() {}
34 } // namespace cc
36 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_