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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_message_params.h

Issue 2794343003: cc: Allow overlay candidates with transforms. (Closed)
Patch Set: OverlayCheck_PArams default transform to none. Created 3 years, 8 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
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 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
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
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698