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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_window_proxy.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h" 5 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h"
6 6
7 #include "ui/ozone/platform/drm/gpu/drm_thread.h" 7 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
8 #include "ui/ozone/platform/drm/gpu/overlay_plane.h" 8 #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
9 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h" 9 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h"
10 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h" 10 #include "ui/ozone/platform/drm/gpu/scanout_buffer.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 void DrmWindowProxy::GetVSyncParameters( 28 void DrmWindowProxy::GetVSyncParameters(
29 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { 29 const gfx::VSyncProvider::UpdateVSyncCallback& callback) {
30 drm_thread_->task_runner()->PostTask( 30 drm_thread_->task_runner()->PostTask(
31 FROM_HERE, 31 FROM_HERE,
32 base::Bind(&DrmThread::GetVSyncParameters, base::Unretained(drm_thread_), 32 base::Bind(&DrmThread::GetVSyncParameters, base::Unretained(drm_thread_),
33 widget_, CreateSafeCallback(callback))); 33 widget_, CreateSafeCallback(callback)));
34 } 34 }
35 35
36 void DrmWindowProxy::GetOverlayBufferConfigurations(
37 const OverlayParamCallback& callback) {
38 drm_thread_->task_runner()->PostTask(
39 FROM_HERE, base::Bind(&DrmThread::GetOverlayBufferConfigurations,
40 base::Unretained(drm_thread_), widget_,
41 CreateSafeCallback(callback)));
42 }
43
36 } // namespace ui 44 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698