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

Side by Side Diff: cc/output/overlay_strategy_common.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 2015 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_COMMON_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_
7
8 #include "cc/base/cc_export.h"
9 #include "cc/output/overlay_candidate.h"
10 #include "cc/output/overlay_processor.h"
11
12 namespace cc {
13 class StreamVideoDrawQuad;
14 class TextureDrawQuad;
15 class OverlayCandidate;
16
17 class CC_EXPORT OverlayStrategyCommon : public OverlayProcessor::Strategy {
18 public:
19 OverlayStrategyCommon(ResourceProvider* resource_provider);
20 virtual ~OverlayStrategyCommon();
21
22 protected:
23 bool GetCandidateQuadInfo(const DrawQuad& draw_quad,
24 OverlayCandidate* quad_info);
25
26 // Returns true if |draw_quad| will not block quads underneath from becoming
27 // an overlay.
28 bool IsInvisibleQuad(const DrawQuad* draw_quad);
29
30 bool GetTextureQuadInfo(const TextureDrawQuad& quad,
31 OverlayCandidate* quad_info);
32 bool GetVideoQuadInfo(const StreamVideoDrawQuad& quad,
33 OverlayCandidate* quad_info);
34
35 ResourceProvider* resource_provider_;
36 };
37 }
38
39 #endif // CC_OUTPUT_OVERLAY_STRATEGY_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698