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

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

Issue 979693005: Add underlays and split off common overlay functionality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h"
12 #include "cc/output/overlay_processor.h"
13 #include "cc/output/overlay_strategy_common.h"
14 #include "cc/quads/render_pass.h"
15
16 namespace cc {
17 class OverlayCandidateValidator;
18 class StreamVideoDrawQuad;
19 class TextureDrawQuad;
20
21 // The underlay strategy looks for a video quad without regard to quads above
22 // it. The video is "underlaid" through the same mechanism as the video hole -
23 // a black transparent quad blended normally.
24 class CC_EXPORT OverlayStrategyUnderlay : public OverlayStrategyCommon {
25 public:
26 OverlayStrategyUnderlay(OverlayCandidateValidator* capability_checker,
27 ResourceProvider* resource_provider);
28 bool Attempt(RenderPassList* render_passes_in_draw_order,
29 OverlayCandidateList* candidate_list) override;
30
31 private:
32 bool IsOverlayQuad(const DrawQuad* draw_quad);
33
34 OverlayCandidateValidator* capability_checker_;
35 DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlay);
36 };
37
38 } // namespace cc
39
40 #endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698