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

Side by Side Diff: cc/output/overlay_strategy_fullscreen.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_processor.cc ('k') | cc/output/overlay_strategy_fullscreen.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_FULLSCREEN_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_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 // Overlay strategy to promote a single full screen quad to an overlay. 14 // Overlay strategy to promote a single full screen quad to an overlay.
15 // The promoted quad should have all the property of the framebuffer and it 15 // The promoted quad should have all the property of the framebuffer and it
16 // should be possible to use it as such. 16 // should be possible to use it as such.
17 class CC_EXPORT OverlayStrategyFullscreen : public OverlayProcessor::Strategy { 17 class CC_EXPORT OverlayStrategyFullscreen : public OverlayProcessor::Strategy {
18 public: 18 public:
19 explicit OverlayStrategyFullscreen( 19 explicit OverlayStrategyFullscreen(
20 OverlayCandidateValidator* capability_checker); 20 OverlayCandidateValidator* capability_checker);
21 ~OverlayStrategyFullscreen() override; 21 ~OverlayStrategyFullscreen() override;
22 22
23 bool Attempt(ResourceProvider* resource_provider, 23 bool Attempt(ResourceProvider* resource_provider,
24 RenderPass* render_pass, 24 RenderPass* render_pass,
25 OverlayCandidateList* candidate_list) override; 25 OverlayCandidateList* candidate_list,
26 std::vector<gfx::Rect>* content_bounds) override;
26 27
27 private: 28 private:
28 OverlayCandidateValidator* capability_checker_; // Weak. 29 OverlayCandidateValidator* capability_checker_; // Weak.
29 30
30 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyFullscreen); 31 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyFullscreen);
31 }; 32 };
32 33
33 } // namespace cc 34 } // namespace cc
34 35
35 #endif // CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_ 36 #endif // CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/output/overlay_strategy_fullscreen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698