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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread.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/platform/drm/gpu/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 901dedb08c7c0aa19398ed49293842dd7a6f6703..fbd194c55200c3666f02255e4efdac2ee67f7703 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -124,6 +124,14 @@ void DrmThread::GetVSyncParameters(
window->GetVSyncParameters(callback);
}
+void DrmThread::GetOverlayBufferConfigurations(
+ gfx::AcceleratedWidget widget,
+ const OverlayParamCallback& callback) {
+ DrmWindow* window = screen_manager_->GetWindow(widget);
+ if (window)
+ window->GetOverlayBufferConfigurations(callback);
+}
+
void DrmThread::CreateWindow(gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> window(
new DrmWindow(widget, device_manager_.get(), screen_manager_.get()));
@@ -156,12 +164,14 @@ void DrmThread::MoveCursor(gfx::AcceleratedWidget widget,
void DrmThread::CheckOverlayCapabilities(
gfx::AcceleratedWidget widget,
- const std::vector<OverlayCheck_Params>& overlays,
+ const std::vector<OverlayCheck_Params>& current_combination,
+ const std::vector<OverlayCheck_Params>& new_combination,
const base::Callback<void(gfx::AcceleratedWidget,
const std::vector<OverlayCheck_Params>&)>&
callback) {
callback.Run(widget, screen_manager_->GetWindow(widget)
- ->TestPageFlip(overlays, buffer_generator_.get()));
+ ->TestPageFlip(current_combination, new_combination,
+ buffer_generator_.get()));
}
void DrmThread::RefreshNativeDisplays(

Powered by Google App Engine
This is Rietveld 408576698