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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread_proxy.cc

Issue 1598573002: Propagate supported scanout formats from driver to SurfaceFactoryOzone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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_thread_proxy.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h" 8 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h"
9 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h" 9 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h"
10 #include "ui/ozone/platform/drm/gpu/gbm_buffer.h" 10 #include "ui/ozone/platform/drm/gpu/gbm_buffer.h"
(...skipping 21 matching lines...) Expand all
32 gfx::BufferFormat format, 32 gfx::BufferFormat format,
33 gfx::BufferUsage usage) { 33 gfx::BufferUsage usage) {
34 scoped_refptr<GbmBuffer> buffer; 34 scoped_refptr<GbmBuffer> buffer;
35 PostSyncTask( 35 PostSyncTask(
36 drm_thread_.task_runner(), 36 drm_thread_.task_runner(),
37 base::Bind(&DrmThread::CreateBuffer, base::Unretained(&drm_thread_), 37 base::Bind(&DrmThread::CreateBuffer, base::Unretained(&drm_thread_),
38 widget, size, format, usage, &buffer)); 38 widget, size, format, usage, &buffer));
39 return buffer; 39 return buffer;
40 } 40 }
41 41
42 void DrmThreadProxy::GetSupportedFormats(
43 std::vector<uint32_t>* support_formats) {
spang 2016/01/20 18:52:24 Be consistent with naming: supported_formats
william.xie 2016/01/21 02:14:02 Done.
44 PostSyncTask(drm_thread_.task_runner(),
45 base::Bind(&DrmThread::GetSupportedFormats,
46 base::Unretained(&drm_thread_), support_formats));
47 }
48
42 } // namespace ui 49 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698