OLD | NEW |
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_CANDIDATE_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // If the quad is clipped after composition. | 59 // If the quad is clipped after composition. |
60 bool is_clipped; | 60 bool is_clipped; |
61 // True if the texture for this overlay should be the same one used by the | 61 // True if the texture for this overlay should be the same one used by the |
62 // output surface's main overlay. | 62 // output surface's main overlay. |
63 bool use_output_surface_for_resource; | 63 bool use_output_surface_for_resource; |
64 // Texture resource to present in an overlay. | 64 // Texture resource to present in an overlay. |
65 unsigned resource_id; | 65 unsigned resource_id; |
66 // Stacking order of the overlay plane relative to the main surface, | 66 // Stacking order of the overlay plane relative to the main surface, |
67 // which is 0. Signed to allow for "underlays". | 67 // which is 0. Signed to allow for "underlays". |
68 int plane_z_order; | 68 int plane_z_order; |
69 // If the overlay needs blending support. | |
70 bool needs_blending; | |
71 | 69 |
72 // To be modified by the implementer if this candidate can go into | 70 // To be modified by the implementer if this candidate can go into |
73 // an overlay. | 71 // an overlay. |
74 bool overlay_handled; | 72 bool overlay_handled; |
75 | 73 |
76 private: | 74 private: |
77 static bool FromTextureQuad(ResourceProvider* resource_provider, | 75 static bool FromTextureQuad(ResourceProvider* resource_provider, |
78 const TextureDrawQuad* quad, | 76 const TextureDrawQuad* quad, |
79 OverlayCandidate* candidate); | 77 OverlayCandidate* candidate); |
80 static bool FromStreamVideoQuad(ResourceProvider* resource_provider, | 78 static bool FromStreamVideoQuad(ResourceProvider* resource_provider, |
81 const StreamVideoDrawQuad* quad, | 79 const StreamVideoDrawQuad* quad, |
82 OverlayCandidate* candidate); | 80 OverlayCandidate* candidate); |
83 static bool FromIOSurfaceQuad(ResourceProvider* resource_provider, | 81 static bool FromIOSurfaceQuad(ResourceProvider* resource_provider, |
84 const IOSurfaceDrawQuad* quad, | 82 const IOSurfaceDrawQuad* quad, |
85 OverlayCandidate* candidate); | 83 OverlayCandidate* candidate); |
86 }; | 84 }; |
87 | 85 |
88 typedef std::vector<OverlayCandidate> OverlayCandidateList; | 86 typedef std::vector<OverlayCandidate> OverlayCandidateList; |
89 | 87 |
90 } // namespace cc | 88 } // namespace cc |
91 | 89 |
92 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 90 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
OLD | NEW |