| 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 UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ | 5 #ifndef UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ |
| 6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ | 6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 gfx::RectF crop_rect; | 37 gfx::RectF crop_rect; |
| 38 // Quad geometry rect after applying the quad_transform(). | 38 // Quad geometry rect after applying the quad_transform(). |
| 39 gfx::Rect quad_rect_in_target_space; | 39 gfx::Rect quad_rect_in_target_space; |
| 40 // Clip rect in the target content space after composition. | 40 // Clip rect in the target content space after composition. |
| 41 gfx::Rect clip_rect; | 41 gfx::Rect clip_rect; |
| 42 // If the quad is clipped after composition. | 42 // If the quad is clipped after composition. |
| 43 bool is_clipped; | 43 bool is_clipped; |
| 44 // Stacking order of the overlay plane relative to the main surface, | 44 // Stacking order of the overlay plane relative to the main surface, |
| 45 // which is 0. Signed to allow for "underlays". | 45 // which is 0. Signed to allow for "underlays". |
| 46 int plane_z_order = 0; | 46 int plane_z_order = 0; |
| 47 | 47 // If any scaling requirements need to be handled before composition. |
| 48 bool handle_scaling = true; |
| 48 // To be modified by the implementer if this candidate can go into | 49 // To be modified by the implementer if this candidate can go into |
| 49 // an overlay. | 50 // an overlay. |
| 50 bool overlay_handled = false; | 51 bool overlay_handled = false; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 typedef std::vector<OverlaySurfaceCandidate> OverlaySurfaceCandidateList; | 54 typedef std::vector<OverlaySurfaceCandidate> OverlaySurfaceCandidateList; |
| 54 | 55 |
| 55 // A list of possible overlay candidates is presented to this function. | 56 // A list of possible overlay candidates is presented to this function. |
| 56 // The expected result is that those candidates that can be in a separate | 57 // The expected result is that those candidates that can be in a separate |
| 57 // plane are marked with |overlay_handled| set to true, otherwise they are | 58 // plane are marked with |overlay_handled| set to true, otherwise they are |
| 58 // to be traditionally composited. When setting |overlay_handled| to true, | 59 // to be traditionally composited. When setting |overlay_handled| to true, |
| 59 // the implementation must also snap |display_rect| to integer coordinates | 60 // the implementation must also snap |display_rect| to integer coordinates |
| 60 // if necessary. | 61 // if necessary. |
| 61 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces); | 62 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces); |
| 62 | 63 |
| 63 virtual ~OverlayCandidatesOzone(); | 64 virtual ~OverlayCandidatesOzone(); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace ui | 67 } // namespace ui |
| 67 | 68 |
| 68 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ | 69 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ |
| OLD | NEW |