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

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

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduced ScopedExportLock Created 6 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 | Annotate | Revision Log
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 "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/output/overlay_candidate.h" 12 #include "cc/output/overlay_candidate.h"
13 #include "cc/resources/resource_format.h" 13 #include "cc/resources/resource_format.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 15
16 namespace cc { 16 namespace cc {
17 17
18 // This class that can be used to answer questions about possible overlay 18 // This class that can be used to answer questions about possible overlay
19 // configurations for a particular output device. 19 // configurations for a particular output device.
20 class CC_EXPORT OverlayCandidateValidator { 20 class CC_EXPORT OverlayCandidateValidator {
21 public: 21 public:
22 typedef std::vector<OverlayCandidate> OverlayCandidateList;
23
24 // A list of possible overlay candidates is presented to this function. 22 // A list of possible overlay candidates is presented to this function.
25 // The expected result is that those candidates that can be in a separate 23 // The expected result is that those candidates that can be in a separate
26 // plane are marked with |overlay_handled| set to true, otherwise they are 24 // plane are marked with |overlay_handled| set to true, otherwise they are
27 // to be traditionally composited. 25 // to be traditionally composited.
28 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0; 26 virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0;
29 27
30 virtual ~OverlayCandidateValidator() {} 28 virtual ~OverlayCandidateValidator() {}
31 }; 29 };
32 30
33 } // namespace cc 31 } // namespace cc
34 32
35 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_ 33 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_VALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698