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

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

Issue 2573603005: Compute damage rect for Cast video compositing (Closed)
Patch Set: Created 4 years 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_cast_underlay.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_CAST_UNDERLAY_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_CAST_UNDERLAY_H_
7
8 #include "base/macros.h"
9 #include "cc/output/overlay_strategy_underlay.h"
10
11 namespace cc {
12
13 class OverlayCandidateValidator;
14
15 // Similar to underlay strategy but with cast-specific damage rect calculation.
16 class CC_EXPORT OverlayStrategyCastUnderlay : public OverlayStrategyUnderlay {
17 public:
18 explicit OverlayStrategyCastUnderlay(
19 OverlayCandidateValidator* capability_checker);
20 ~OverlayStrategyCastUnderlay() override;
21
22 bool Attempt(ResourceProvider* resource_provider,
23 RenderPass* render_pass,
24 OverlayCandidateList* candidate_list) override;
25
26 bool GetSwapWithDamageRect(gfx::Rect* rect) override;
27
28 private:
29 bool have_swap_with_damage_rect_;
30 gfx::Rect swap_with_damage_rect_;
31
32 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyCastUnderlay);
33 };
34
35 } // namespace cc
36
37 #endif // CC_OUTPUT_OVERLAY_STRATEGY_CAST_UNDERLAY_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/output/overlay_strategy_cast_underlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698