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

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: Review fixes Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 875f3844939d9d017414ce8ae84f7cfeac6f16aa..63ec6f96db21303b523ab5bbb93e20951b93b4bb 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -130,7 +130,7 @@ void DrmThread::GetVSyncParameters(
void DrmThread::CreateWindow(gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> window(
new DrmWindow(widget, device_manager_.get(), screen_manager_.get()));
- window->Initialize();
+ window->Initialize(buffer_generator_.get());
screen_manager_->AddWindow(widget, std::move(window));
}
@@ -163,8 +163,8 @@ void DrmThread::CheckOverlayCapabilities(
const base::Callback<void(gfx::AcceleratedWidget,
const std::vector<OverlayCheck_Params>&)>&
callback) {
- callback.Run(widget, screen_manager_->GetWindow(widget)
- ->TestPageFlip(overlays, buffer_generator_.get()));
+ callback.Run(widget,
+ screen_manager_->GetWindow(widget)->TestPageFlip(overlays));
}
void DrmThread::RefreshNativeDisplays(
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698