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

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

Issue 2723613003: Remove deprecated SurfaceFactoryOzone methods. (Closed)
Patch Set: Brackets. Created 3 years, 9 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"
11 #include "ui/ozone/public/surface_ozone_canvas.h" 11 #include "ui/ozone/public/surface_ozone_canvas.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 SurfaceFactoryOzone::SurfaceFactoryOzone() {} 15 SurfaceFactoryOzone::SurfaceFactoryOzone() {}
16 16
17 SurfaceFactoryOzone::~SurfaceFactoryOzone() {} 17 SurfaceFactoryOzone::~SurfaceFactoryOzone() {}
18 18
19 std::vector<gl::GLImplementation> 19 std::vector<gl::GLImplementation>
20 SurfaceFactoryOzone::GetAllowedGLImplementations() { 20 SurfaceFactoryOzone::GetAllowedGLImplementations() {
21 std::vector<gl::GLImplementation> impls; 21 return std::vector<gl::GLImplementation>{gl::kGLImplementationOSMesaGL};
22 // TODO(kylechar): Remove EGL from this list once every Ozone platform that
23 // uses EGL overrides this method.
24 impls.push_back(gl::kGLImplementationEGLGLES2);
25 impls.push_back(gl::kGLImplementationOSMesaGL);
26 return impls;
27 } 22 }
28 23
29 GLOzone* SurfaceFactoryOzone::GetGLOzone(gl::GLImplementation implementation) { 24 GLOzone* SurfaceFactoryOzone::GetGLOzone(gl::GLImplementation implementation) {
30 return nullptr; 25 return nullptr;
31 } 26 }
32 27
33 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
34 return 0;
35 }
36
37 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateViewGLSurface(
38 gl::GLImplementation implementation,
39 gfx::AcceleratedWidget widget) {
40 return nullptr;
41 }
42
43 scoped_refptr<gl::GLSurface>
44 SurfaceFactoryOzone::CreateSurfacelessViewGLSurface(
45 gl::GLImplementation implementation,
46 gfx::AcceleratedWidget widget) {
47 return nullptr;
48 }
49
50 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateOffscreenGLSurface(
51 gl::GLImplementation implementation,
52 const gfx::Size& size) {
53 return nullptr;
54 }
55
56 std::unique_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget( 28 std::unique_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
57 gfx::AcceleratedWidget widget) { 29 gfx::AcceleratedWidget widget) {
58 return nullptr; 30 return nullptr;
59 } 31 }
60 32
61 bool SurfaceFactoryOzone::LoadEGLGLES2Bindings() {
62 return false;
63 }
64
65 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats( 33 std::vector<gfx::BufferFormat> SurfaceFactoryOzone::GetScanoutFormats(
66 gfx::AcceleratedWidget widget) { 34 gfx::AcceleratedWidget widget) {
67 return std::vector<gfx::BufferFormat>(); 35 return std::vector<gfx::BufferFormat>();
68 } 36 }
69 37
70 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap( 38 scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
71 gfx::AcceleratedWidget widget, 39 gfx::AcceleratedWidget widget,
72 gfx::Size size, 40 gfx::Size size,
73 gfx::BufferFormat format, 41 gfx::BufferFormat format,
74 gfx::BufferUsage usage) { 42 gfx::BufferUsage usage) {
75 return nullptr; 43 return nullptr;
76 } 44 }
77 45
78 scoped_refptr<ui::NativePixmap> 46 scoped_refptr<ui::NativePixmap>
79 SurfaceFactoryOzone::CreateNativePixmapFromHandle( 47 SurfaceFactoryOzone::CreateNativePixmapFromHandle(
80 gfx::AcceleratedWidget widget, 48 gfx::AcceleratedWidget widget,
81 gfx::Size size, 49 gfx::Size size,
82 gfx::BufferFormat format, 50 gfx::BufferFormat format,
83 const gfx::NativePixmapHandle& handle) { 51 const gfx::NativePixmapHandle& handle) {
84 return nullptr; 52 return nullptr;
85 } 53 }
86 54
87 } // namespace ui 55 } // 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