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

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

Issue 1452943002: cc: Fix overlay damage tracking bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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 "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 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy { 14 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy {
15 public: 15 public:
16 explicit OverlayStrategySingleOnTop( 16 explicit OverlayStrategySingleOnTop(
17 OverlayCandidateValidator* capability_checker); 17 OverlayCandidateValidator* capability_checker);
18 ~OverlayStrategySingleOnTop() override; 18 ~OverlayStrategySingleOnTop() override;
19 19
20 bool Attempt(ResourceProvider* resource_provider, 20 bool Attempt(ResourceProvider* resource_provider,
21 RenderPassList* render_passes, 21 RenderPassList* render_passes,
22 OverlayCandidateList* candidate_list, 22 OverlayCandidateList* candidate_list) override;
23 gfx::Rect* damage_rect) override;
24 23
25 private: 24 private:
26 bool TryOverlay(QuadList* quad_list, 25 bool TryOverlay(QuadList* quad_list,
27 OverlayCandidateList* candidate_list, 26 OverlayCandidateList* candidate_list,
28 const OverlayCandidate& candidate, 27 const OverlayCandidate& candidate,
29 QuadList::Iterator candidate_iterator, 28 QuadList::Iterator candidate_iterator);
30 gfx::Rect* damage_rect);
31 29
32 OverlayCandidateValidator* capability_checker_; // Weak. 30 OverlayCandidateValidator* capability_checker_; // Weak.
33 31
34 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop); 32 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
35 }; 33 };
36 34
37 } // namespace cc 35 } // namespace cc
38 36
39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 37 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698