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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/output/overlay_strategy_single_on_top.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_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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 11 matching lines...) Expand all
22 OverlayStrategySingleOnTop(OverlayCandidateValidator* capability_checker, 22 OverlayStrategySingleOnTop(OverlayCandidateValidator* capability_checker,
23 ResourceProvider* resource_provider); 23 ResourceProvider* resource_provider);
24 bool Attempt(RenderPassList* render_passes_in_draw_order, 24 bool Attempt(RenderPassList* render_passes_in_draw_order,
25 OverlayCandidateList* candidate_list) override; 25 OverlayCandidateList* candidate_list) override;
26 26
27 private: 27 private:
28 bool IsOverlayQuad(const DrawQuad* draw_quad); 28 bool IsOverlayQuad(const DrawQuad* draw_quad);
29 bool GetCandidateQuadInfo(const DrawQuad& draw_quad, 29 bool GetCandidateQuadInfo(const DrawQuad& draw_quad,
30 OverlayCandidate* quad_info); 30 OverlayCandidate* quad_info);
31 31
32 // Returns true if |draw_quad| will not block quads underneath from becoming
33 // an overlay.
34 bool IsInvisibleQuad(const DrawQuad* draw_quad);
35
32 bool GetTextureQuadInfo(const TextureDrawQuad& quad, 36 bool GetTextureQuadInfo(const TextureDrawQuad& quad,
33 OverlayCandidate* quad_info); 37 OverlayCandidate* quad_info);
34 bool GetVideoQuadInfo(const StreamVideoDrawQuad& quad, 38 bool GetVideoQuadInfo(const StreamVideoDrawQuad& quad,
35 OverlayCandidate* quad_info); 39 OverlayCandidate* quad_info);
36 40
37 OverlayCandidateValidator* capability_checker_; 41 OverlayCandidateValidator* capability_checker_;
38 ResourceProvider* resource_provider_; 42 ResourceProvider* resource_provider_;
39 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop); 43 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
40 }; 44 };
41 45
42 } // namespace cc 46 } // namespace cc
43 47
44 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 48 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698