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

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

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)
Patch Set: refactoring Created 3 years, 6 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 gfx::Size buffer_size; 66 gfx::Size buffer_size;
67 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_NONE; 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 struct OverlayCheckReturn_Params {
77 OverlayCheckReturn_Params() = default;
78 OverlayCheckReturn_Params(const OverlayCheckReturn_Params& other) = default;
79 ~OverlayCheckReturn_Params() = default;
80
81 enum Status { Pending, Able, Not, Last = Not };
dnicoara 2017/06/02 21:31:25 Enum constants should be ALL_CAPS.
dshwang 2017/06/02 23:59:00 Done.
82 Status status = Status::Pending;
83 };
84
76 } // namespace ui 85 } // namespace ui
77 86
78 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 87 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/common/gpu/ozone_gpu_messages.h » ('j') | ui/ozone/platform/drm/host/drm_overlay_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698