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

Side by Side Diff: ui/ozone/public/surface_factory_ozone.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
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/public/surface_factory_ozone.h" 5 #include "ui/ozone/public/surface_factory_ozone.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "ui/ozone/public/native_pixmap.h" 10 #include "ui/ozone/public/native_pixmap.h"
(...skipping 26 matching lines...) Expand all
37 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( 37 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
38 gfx::AcceleratedWidget widget) { 38 gfx::AcceleratedWidget widget) {
39 return nullptr; 39 return nullptr;
40 } 40 }
41 41
42 const int32_t* SurfaceFactoryOzone::GetEGLSurfaceProperties( 42 const int32_t* SurfaceFactoryOzone::GetEGLSurfaceProperties(
43 const int32_t* desired_attributes) { 43 const int32_t* desired_attributes) {
44 return desired_attributes; 44 return desired_attributes;
45 } 45 }
46 46
47 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats(
48 gfx::AcceleratedWidget widget) {
49 return std::vector<gfx::BufferFormat>();
50 }
51
47 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( 52 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
48 gfx::AcceleratedWidget widget, 53 gfx::AcceleratedWidget widget,
49 gfx::Size size, 54 gfx::Size size,
50 gfx::BufferFormat format, 55 gfx::BufferFormat format,
51 gfx::BufferUsage usage) { 56 gfx::BufferUsage usage) {
52 return nullptr; 57 return nullptr;
53 } 58 }
54 59
55 scoped_refptr<ui::NativePixmap> 60 scoped_refptr<ui::NativePixmap>
56 SurfaceFactoryOzone::CreateNativePixmapFromHandle( 61 SurfaceFactoryOzone::CreateNativePixmapFromHandle(
57 const gfx::NativePixmapHandle& handle) { 62 const gfx::NativePixmapHandle& handle) {
58 return nullptr; 63 return nullptr;
59 } 64 }
60 65
61 } // namespace ui 66 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698