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

Unified Diff: ui/ozone/platform/drm/gpu/drm_window.h

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: 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/platform/drm/gpu/drm_window.h
diff --git a/ui/ozone/platform/drm/gpu/drm_window.h b/ui/ozone/platform/drm/gpu/drm_window.h
index 629fbdcd7badd1721f9dac2c27560750c6ff9f2f..263531355403dc981702eb223890fcbd9ac707fc 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.h
+++ b/ui/ozone/platform/drm/gpu/drm_window.h
@@ -96,6 +96,15 @@ class OZONE_EXPORT DrmWindow {
void GetVSyncParameters(
const gfx::VSyncProvider::UpdateVSyncCallback& callback) const;
+ // Returns optimal buffer configuration which can be supported by the display
+ // on which this window is shown.
+ OverlayBufferConfiguration GetOverlayBufferConfiguration(
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect,
+ const gfx::Size& current_buffer_size,
+ uint32_t z_order,
+ bool video_content);
+
private:
// Draw the last set cursor & update the cursor plane.
void ResetCursor(bool bitmap_only);

Powered by Google App Engine
This is Rietveld 408576698