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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // to integer coordinates if setting |overlay_handled| to true. | 60 // to integer coordinates if setting |overlay_handled| to true. |
61 gfx::RectF display_rect; | 61 gfx::RectF display_rect; |
62 // Crop within the buffer to be placed inside |display_rect|. | 62 // Crop within the buffer to be placed inside |display_rect|. |
63 gfx::RectF uv_rect; | 63 gfx::RectF uv_rect; |
64 // Quad geometry rect after applying the quad_transform(). | 64 // Quad geometry rect after applying the quad_transform(). |
65 gfx::Rect quad_rect_in_target_space; | 65 gfx::Rect quad_rect_in_target_space; |
66 // Clip rect in the target content space after composition. | 66 // Clip rect in the target content space after composition. |
67 gfx::Rect clip_rect; | 67 gfx::Rect clip_rect; |
68 // If the quad is clipped after composition. | 68 // If the quad is clipped after composition. |
69 bool is_clipped; | 69 bool is_clipped; |
| 70 // If the quad doesn't require blending. |
| 71 bool is_opaque; |
70 // True if the texture for this overlay should be the same one used by the | 72 // True if the texture for this overlay should be the same one used by the |
71 // output surface's main overlay. | 73 // output surface's main overlay. |
72 bool use_output_surface_for_resource; | 74 bool use_output_surface_for_resource; |
73 // Texture resource to present in an overlay. | 75 // Texture resource to present in an overlay. |
74 unsigned resource_id; | 76 unsigned resource_id; |
75 | 77 |
76 #if defined(OS_ANDROID) | 78 #if defined(OS_ANDROID) |
77 // For candidates from StreamVideoDrawQuads, this records whether the quad is | 79 // For candidates from StreamVideoDrawQuads, this records whether the quad is |
78 // marked as being backed by a SurfaceTexture or not. If so, it's not really | 80 // marked as being backed by a SurfaceTexture or not. If so, it's not really |
79 // promotable to an overlay. | 81 // promotable to an overlay. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // overlay, if one backs them with a SurfaceView. | 124 // overlay, if one backs them with a SurfaceView. |
123 PromotionHintInfoMap promotion_hint_info_map_; | 125 PromotionHintInfoMap promotion_hint_info_map_; |
124 | 126 |
125 // Helper to insert |candidate| into |promotion_hint_info_|. | 127 // Helper to insert |candidate| into |promotion_hint_info_|. |
126 void AddPromotionHint(const OverlayCandidate& candidate); | 128 void AddPromotionHint(const OverlayCandidate& candidate); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace cc | 131 } // namespace cc |
130 | 132 |
131 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 133 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
OLD | NEW |