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

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

Issue 2736643004: Add DCLayerOverlayProcessor and supporting DCLayer structures. (Closed)
Patch Set: split CALayerOverlay into DCLayerOverlay Created 3 years, 9 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/gl_renderer_unittest.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h" 11 #include "cc/output/overlay_candidate.h"
12 #include "cc/output/overlay_processor.h" 12 #include "cc/output/overlay_processor.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 // This class that can be used to answer questions about possible overlay 16 // This class that can be used to answer questions about possible overlay
17 // configurations for a particular output device. 17 // configurations for a particular output device.
18 class CC_EXPORT OverlayCandidateValidator { 18 class CC_EXPORT OverlayCandidateValidator {
19 public: 19 public:
20 // Populates a list of strategies that may work with this validator. 20 // Populates a list of strategies that may work with this validator.
21 virtual void GetStrategies(OverlayProcessor::StrategyList* strategies) = 0; 21 virtual void GetStrategies(OverlayProcessor::StrategyList* strategies) = 0;
22 22
23 // Returns true if draw quads can be represented as CALayers (Mac only). 23 // Returns true if draw quads can be represented as CALayers (Mac only).
24 virtual bool AllowCALayerOverlays() = 0; 24 virtual bool AllowCALayerOverlays() = 0;
25 25
26 // Returns true if draw quads can be represented as Direct Composition
27 // Visuals (Windows only).
28 virtual bool AllowDCLayerOverlays() = 0;
29
26 // A list of possible overlay candidates is presented to this function. 30 // A list of possible overlay candidates is presented to this function.
27 // The expected result is that those candidates that can be in a separate 31 // The expected result is that those candidates that can be in a separate
28 // plane are marked with |overlay_handled| set to true, otherwise they are 32 // plane are marked with |overlay_handled| set to true, otherwise they are
29 // to be traditionally composited. Candidates with |overlay_handled| set to 33 // to be traditionally composited. Candidates with |overlay_handled| set to
30 // true must also have their |display_rect| converted to integer 34 // true must also have their |display_rect| converted to integer
31 // coordinates if necessary. 35 // coordinates if necessary.
32 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0; 36 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0;
33 37
34 virtual ~OverlayCandidateValidator() {} 38 virtual ~OverlayCandidateValidator() {}
35 }; 39 };
36 40
37 } // namespace cc 41 } // namespace cc
38 42
39 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ 43 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698