OLD | NEW |
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" |
11 #include "ui/ozone/public/surface_ozone_canvas.h" | 11 #include "ui/ozone/public/surface_ozone_canvas.h" |
12 #include "ui/ozone/public/surface_ozone_egl.h" | 12 #include "ui/ozone/public/surface_ozone_egl.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 SurfaceFactoryOzone::SurfaceFactoryOzone() { | 16 SurfaceFactoryOzone::SurfaceFactoryOzone() { |
17 } | 17 } |
18 | 18 |
19 SurfaceFactoryOzone::~SurfaceFactoryOzone() { | 19 SurfaceFactoryOzone::~SurfaceFactoryOzone() { |
20 } | 20 } |
21 | 21 |
22 intptr_t SurfaceFactoryOzone::GetNativeDisplay() { | 22 intptr_t SurfaceFactoryOzone::GetNativeDisplay() { |
23 return 0; | 23 return 0; |
24 } | 24 } |
25 | 25 |
26 scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( | 26 std::unique_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( |
27 gfx::AcceleratedWidget widget) { | 27 gfx::AcceleratedWidget widget) { |
28 return nullptr; | 28 return nullptr; |
29 } | 29 } |
30 | 30 |
31 scoped_ptr<SurfaceOzoneEGL> | 31 std::unique_ptr<SurfaceOzoneEGL> |
32 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( | 32 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( |
33 gfx::AcceleratedWidget widget) { | 33 gfx::AcceleratedWidget widget) { |
34 return nullptr; | 34 return nullptr; |
35 } | 35 } |
36 | 36 |
37 scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( | 37 std::unique_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( |
38 gfx::AcceleratedWidget widget) { | 38 gfx::AcceleratedWidget widget) { |
39 return nullptr; | 39 return nullptr; |
40 } | 40 } |
41 | 41 |
42 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats( | 42 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats( |
43 gfx::AcceleratedWidget widget) { | 43 gfx::AcceleratedWidget widget) { |
44 return std::vector<gfx::BufferFormat>(); | 44 return std::vector<gfx::BufferFormat>(); |
45 } | 45 } |
46 | 46 |
47 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( | 47 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( |
48 gfx::AcceleratedWidget widget, | 48 gfx::AcceleratedWidget widget, |
49 gfx::Size size, | 49 gfx::Size size, |
50 gfx::BufferFormat format, | 50 gfx::BufferFormat format, |
51 gfx::BufferUsage usage) { | 51 gfx::BufferUsage usage) { |
52 return nullptr; | 52 return nullptr; |
53 } | 53 } |
54 | 54 |
55 scoped_refptr<ui::NativePixmap> | 55 scoped_refptr<ui::NativePixmap> |
56 SurfaceFactoryOzone::CreateNativePixmapFromHandle( | 56 SurfaceFactoryOzone::CreateNativePixmapFromHandle( |
57 gfx::Size size, | 57 gfx::Size size, |
58 gfx::BufferFormat format, | 58 gfx::BufferFormat format, |
59 const gfx::NativePixmapHandle& handle) { | 59 const gfx::NativePixmapHandle& handle) { |
60 return nullptr; | 60 return nullptr; |
61 } | 61 } |
62 | 62 |
63 } // namespace ui | 63 } // namespace ui |
OLD | NEW |