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

Unified Diff: ui/ozone/common/gpu/ozone_gpu_message_params.cc

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cosmetic fixes Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/common/gpu/ozone_gpu_message_params.cc
diff --git a/ui/ozone/common/gpu/ozone_gpu_message_params.cc b/ui/ozone/common/gpu/ozone_gpu_message_params.cc
index 77633c5713e5abc991f01c61d1a4d05bfdae47c0..a7185fdf4845643166bf1e72a10e8ad3844923a2 100644
--- a/ui/ozone/common/gpu/ozone_gpu_message_params.cc
+++ b/ui/ozone/common/gpu/ozone_gpu_message_params.cc
@@ -29,7 +29,18 @@ OverlayCheck_Params::OverlayCheck_Params(
display_rect(gfx::ToNearestRect(candidate.display_rect)),
crop_rect(candidate.crop_rect),
plane_z_order(candidate.plane_z_order),
- weight(0) {}
+ weight(0),
+ state(kTest),
+ optimal_format(candidate.format),
+ required_buffer_size(candidate.buffer_size) {}
+
+bool OverlayCheck_Params::operator==(const OverlayCheck_Params& param) const {
+ return this->plane_z_order == param.plane_z_order &&
+ this->format == param.format && this->transform == param.transform &&
+ this->display_rect == param.display_rect &&
+ this->buffer_size == param.buffer_size &&
+ this->crop_rect == param.crop_rect;
+}
OverlayCheck_Params::~OverlayCheck_Params() {
}

Powered by Google App Engine
This is Rietveld 408576698