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

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

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits 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/overlay_strategy_fullscreen.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('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_STRATEGY_SINGLE_ON_TOP_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/overlay_processor.h" 9 #include "cc/output/overlay_processor.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class OverlayCandidateValidator; 13 class OverlayCandidateValidator;
14 14
15 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy { 15 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy {
16 public: 16 public:
17 explicit OverlayStrategySingleOnTop( 17 explicit OverlayStrategySingleOnTop(
18 OverlayCandidateValidator* capability_checker); 18 OverlayCandidateValidator* capability_checker);
19 ~OverlayStrategySingleOnTop() override; 19 ~OverlayStrategySingleOnTop() override;
20 20
21 bool Attempt(ResourceProvider* resource_provider, 21 bool Attempt(ResourceProvider* resource_provider,
22 RenderPass* render_pass, 22 RenderPass* render_pass,
23 OverlayCandidateList* candidate_list) override; 23 OverlayCandidateList* candidate_list,
24 std::vector<gfx::Rect>* content_bounds) override;
24 25
25 private: 26 private:
26 bool TryOverlay(QuadList* quad_list, 27 bool TryOverlay(QuadList* quad_list,
27 OverlayCandidateList* candidate_list, 28 OverlayCandidateList* candidate_list,
28 const OverlayCandidate& candidate, 29 const OverlayCandidate& candidate,
29 QuadList::Iterator candidate_iterator); 30 QuadList::Iterator candidate_iterator);
30 31
31 OverlayCandidateValidator* capability_checker_; // Weak. 32 OverlayCandidateValidator* capability_checker_; // Weak.
32 33
33 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop); 34 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
34 }; 35 };
35 36
36 } // namespace cc 37 } // namespace cc
37 38
38 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_strategy_fullscreen.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698