OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ |
6 #define CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ | 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
12 #include "cc/output/overlay_candidate.h" | 11 #include "cc/output/overlay_candidate.h" |
13 #include "cc/resources/resource_format.h" | |
14 #include "ui/gfx/geometry/rect.h" | |
15 | 12 |
16 namespace cc { | 13 namespace cc { |
17 | 14 |
18 // This class that can be used to answer questions about possible overlay | 15 // This class that can be used to answer questions about possible overlay |
19 // configurations for a particular output device. | 16 // configurations for a particular output device. |
20 class CC_EXPORT OverlayCandidateValidator { | 17 class CC_EXPORT OverlayCandidateValidator { |
21 public: | 18 public: |
22 // A list of possible overlay candidates is presented to this function. | 19 // A list of possible overlay candidates is presented to this function. |
23 // The expected result is that those candidates that can be in a separate | 20 // The expected result is that those candidates that can be in a separate |
24 // plane are marked with |overlay_handled| set to true, otherwise they are | 21 // plane are marked with |overlay_handled| set to true, otherwise they are |
25 // to be traditionally composited. | 22 // to be traditionally composited. |
26 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0; | 23 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0; |
27 | 24 |
28 virtual ~OverlayCandidateValidator() {} | 25 virtual ~OverlayCandidateValidator() {} |
29 }; | 26 }; |
30 | 27 |
31 } // namespace cc | 28 } // namespace cc |
32 | 29 |
33 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ | 30 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ |
OLD | NEW |