| 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_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
| 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 struct OverlayCheck_Params { | 57 struct OverlayCheck_Params { |
| 58 OverlayCheck_Params(); | 58 OverlayCheck_Params(); |
| 59 OverlayCheck_Params( | 59 OverlayCheck_Params( |
| 60 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); | 60 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); |
| 61 OverlayCheck_Params(const OverlayCheck_Params& other); | 61 OverlayCheck_Params(const OverlayCheck_Params& other); |
| 62 ~OverlayCheck_Params(); | 62 ~OverlayCheck_Params(); |
| 63 | 63 |
| 64 bool operator<(const OverlayCheck_Params& plane) const; | 64 bool operator<(const OverlayCheck_Params& plane) const; |
| 65 | 65 |
| 66 gfx::Size buffer_size; | 66 gfx::Size buffer_size; |
| 67 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; | 67 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_NONE; |
| 68 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; | 68 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; |
| 69 gfx::Rect display_rect; | 69 gfx::Rect display_rect; |
| 70 gfx::RectF crop_rect; | 70 gfx::RectF crop_rect; |
| 71 int plane_z_order = 0; | 71 int plane_z_order = 0; |
| 72 // By default we mark this configuration valid for promoting it to an overlay. | 72 // By default we mark this configuration valid for promoting it to an overlay. |
| 73 bool is_overlay_candidate = true; | 73 bool is_overlay_candidate = true; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace ui | 76 } // namespace ui |
| 77 | 77 |
| 78 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 78 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
| 79 | |
| OLD | NEW |