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

Side by Side Diff: ui/ozone/public/surface_factory_ozone.cc

Issue 2190353003: Delete old Ozone surface creation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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') | ui/ozone/public/surface_ozone_egl.h » ('j') | 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"
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"
13 12
14 namespace ui { 13 namespace ui {
15 14
16 SurfaceFactoryOzone::SurfaceFactoryOzone() { 15 SurfaceFactoryOzone::SurfaceFactoryOzone() {}
17 }
18 16
19 SurfaceFactoryOzone::~SurfaceFactoryOzone() { 17 SurfaceFactoryOzone::~SurfaceFactoryOzone() {}
20 }
21 18
22 intptr_t SurfaceFactoryOzone::GetNativeDisplay() { 19 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
23 return 0; 20 return 0;
24 } 21 }
25 22
26 bool SurfaceFactoryOzone::UseNewSurfaceAPI() {
27 return true;
28 }
29
30 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateViewGLSurface( 23 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateViewGLSurface(
31 gl::GLImplementation implementation, 24 gl::GLImplementation implementation,
32 gfx::AcceleratedWidget widget) { 25 gfx::AcceleratedWidget widget) {
33 return nullptr; 26 return nullptr;
34 } 27 }
35 28
36 scoped_refptr<gl::GLSurface> 29 scoped_refptr<gl::GLSurface>
37 SurfaceFactoryOzone::CreateSurfacelessViewGLSurface( 30 SurfaceFactoryOzone::CreateSurfacelessViewGLSurface(
38 gl::GLImplementation implementation, 31 gl::GLImplementation implementation,
39 gfx::AcceleratedWidget widget) { 32 gfx::AcceleratedWidget widget) {
40 return nullptr; 33 return nullptr;
41 } 34 }
42 35
43 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateOffscreenGLSurface( 36 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateOffscreenGLSurface(
44 gl::GLImplementation implementation, 37 gl::GLImplementation implementation,
45 const gfx::Size& size) { 38 const gfx::Size& size) {
46 return nullptr; 39 return nullptr;
47 } 40 }
48 41
49 std::unique_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
50 gfx::AcceleratedWidget widget) {
51 return nullptr;
52 }
53
54 std::unique_ptr<SurfaceOzoneEGL>
55 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
56 gfx::AcceleratedWidget widget) {
57 return nullptr;
58 }
59
60 std::unique_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( 42 std::unique_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
61 gfx::AcceleratedWidget widget) { 43 gfx::AcceleratedWidget widget) {
62 return nullptr; 44 return nullptr;
63 } 45 }
64 46
65 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats( 47 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats(
66 gfx::AcceleratedWidget widget) { 48 gfx::AcceleratedWidget widget) {
67 return std::vector<gfx::BufferFormat>(); 49 return std::vector<gfx::BufferFormat>();
68 } 50 }
69 51
70 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( 52 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
71 gfx::AcceleratedWidget widget, 53 gfx::AcceleratedWidget widget,
72 gfx::Size size, 54 gfx::Size size,
73 gfx::BufferFormat format, 55 gfx::BufferFormat format,
74 gfx::BufferUsage usage) { 56 gfx::BufferUsage usage) {
75 return nullptr; 57 return nullptr;
76 } 58 }
77 59
78 scoped_refptr<ui::NativePixmap> 60 scoped_refptr<ui::NativePixmap>
79 SurfaceFactoryOzone::CreateNativePixmapFromHandle( 61 SurfaceFactoryOzone::CreateNativePixmapFromHandle(
80 gfx::AcceleratedWidget widget, 62 gfx::AcceleratedWidget widget,
81 gfx::Size size, 63 gfx::Size size,
82 gfx::BufferFormat format, 64 gfx::BufferFormat format,
83 const gfx::NativePixmapHandle& handle) { 65 const gfx::NativePixmapHandle& handle) {
84 return nullptr; 66 return nullptr;
85 } 67 }
86 68
87 } // namespace ui 69 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698