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

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

Issue 2122243002: Add new Ozone surface API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gl_egl
Patch Set: Even more deps. Created 4 years, 5 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 #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 bool SurfaceFactoryOzone::UseNewSurfaceAPI() {
27 return false;
28 }
29
30 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateViewGLSurface(
31 gl::GLImplementation implementation,
32 gfx::AcceleratedWidget widget) {
33 return nullptr;
34 }
35
36 scoped_refptr<gl::GLSurface>
37 SurfaceFactoryOzone::CreateSurfacelessViewGLSurface(
38 gl::GLImplementation implementation,
39 gfx::AcceleratedWidget widget) {
40 return nullptr;
41 }
42
43 scoped_refptr<gl::GLSurface> SurfaceFactoryOzone::CreateOffscreenGLSurface(
44 gl::GLImplementation implementation,
45 const gfx::Size& size) {
46 return nullptr;
47 }
48
26 std::unique_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget( 49 std::unique_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
27 gfx::AcceleratedWidget widget) { 50 gfx::AcceleratedWidget widget) {
28 return nullptr; 51 return nullptr;
29 } 52 }
30 53
31 std::unique_ptr<SurfaceOzoneEGL> 54 std::unique_ptr<SurfaceOzoneEGL>
32 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget( 55 SurfaceFactoryOzone::CreateSurfacelessEGLSurfaceForWidget(
33 gfx::AcceleratedWidget widget) { 56 gfx::AcceleratedWidget widget) {
34 return nullptr; 57 return nullptr;
35 } 58 }
(...skipping 19 matching lines...) Expand all
55 scoped_refptr<ui::NativePixmap> 78 scoped_refptr<ui::NativePixmap>
56 SurfaceFactoryOzone::CreateNativePixmapFromHandle( 79 SurfaceFactoryOzone::CreateNativePixmapFromHandle(
57 gfx::AcceleratedWidget widget, 80 gfx::AcceleratedWidget widget,
58 gfx::Size size, 81 gfx::Size size,
59 gfx::BufferFormat format, 82 gfx::BufferFormat format,
60 const gfx::NativePixmapHandle& handle) { 83 const gfx::NativePixmapHandle& handle) {
61 return nullptr; 84 return nullptr;
62 } 85 }
63 86
64 } // namespace ui 87 } // 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