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

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

Issue 1452943002: cc: Fix overlay damage tracking bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add buffer queue update Created 5 years, 1 month 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_single_on_top.cc ('k') | cc/output/overlay_strategy_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
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_UNDERLAY_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
7 7
8 #include "cc/output/overlay_processor.h" 8 #include "cc/output/overlay_processor.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 class OverlayCandidateValidator; 12 class OverlayCandidateValidator;
13 13
14 // The underlay strategy looks for a video quad without regard to quads above 14 // The underlay strategy looks for a video quad without regard to quads above
15 // it. The video is "underlaid" through a black transparent quad substituted 15 // it. The video is "underlaid" through a black transparent quad substituted
16 // for the video quad. The overlay content can then be blended in by the 16 // for the video quad. The overlay content can then be blended in by the
17 // hardware under the the scene. This is only valid for overlay contents that 17 // hardware under the the scene. This is only valid for overlay contents that
18 // are fully opaque. 18 // are fully opaque.
19 class CC_EXPORT OverlayStrategyUnderlay : public OverlayProcessor::Strategy { 19 class CC_EXPORT OverlayStrategyUnderlay : public OverlayProcessor::Strategy {
20 public: 20 public:
21 explicit OverlayStrategyUnderlay( 21 explicit OverlayStrategyUnderlay(
22 OverlayCandidateValidator* capability_checker); 22 OverlayCandidateValidator* capability_checker);
23 ~OverlayStrategyUnderlay() override; 23 ~OverlayStrategyUnderlay() override;
24 24
25 bool Attempt(ResourceProvider* resource_provider, 25 bool Attempt(ResourceProvider* resource_provider,
26 RenderPassList* render_passes, 26 RenderPassList* render_passes,
27 OverlayCandidateList* candidate_list, 27 OverlayCandidateList* candidate_list) override;
28 gfx::Rect* damage_rect) override;
29 28
30 private: 29 private:
31 OverlayCandidateValidator* capability_checker_; // Weak. 30 OverlayCandidateValidator* capability_checker_; // Weak.
32 31
33 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlay); 32 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlay);
34 }; 33 };
35 34
36 } // namespace cc 35 } // namespace cc
37 36
38 #endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_ 37 #endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_strategy_single_on_top.cc ('k') | cc/output/overlay_strategy_underlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698