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

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.h

Issue 2253173002: Remove callbacks for SurfaceFactoryOzone::LoadEGLGLES2Bindings(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 28 matching lines...) Expand all
39 scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface( 39 scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface(
40 gl::GLImplementation implementation, 40 gl::GLImplementation implementation,
41 gfx::AcceleratedWidget widget) override; 41 gfx::AcceleratedWidget widget) override;
42 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( 42 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
43 gl::GLImplementation implementation, 43 gl::GLImplementation implementation,
44 const gfx::Size& size) override; 44 const gfx::Size& size) override;
45 45
46 intptr_t GetNativeDisplay() override; 46 intptr_t GetNativeDisplay() override;
47 std::vector<gfx::BufferFormat> GetScanoutFormats( 47 std::vector<gfx::BufferFormat> GetScanoutFormats(
48 gfx::AcceleratedWidget widget) override; 48 gfx::AcceleratedWidget widget) override;
49 bool LoadEGLGLES2Bindings( 49 bool LoadEGLGLES2Bindings() override;
50 AddGLLibraryCallback add_gl_library,
51 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
52 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 50 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
53 gfx::AcceleratedWidget widget) override; 51 gfx::AcceleratedWidget widget) override;
54 scoped_refptr<ui::NativePixmap> CreateNativePixmap( 52 scoped_refptr<ui::NativePixmap> CreateNativePixmap(
55 gfx::AcceleratedWidget widget, 53 gfx::AcceleratedWidget widget,
56 gfx::Size size, 54 gfx::Size size,
57 gfx::BufferFormat format, 55 gfx::BufferFormat format,
58 gfx::BufferUsage usage) override; 56 gfx::BufferUsage usage) override;
59 scoped_refptr<NativePixmap> CreateNativePixmapFromHandle( 57 scoped_refptr<NativePixmap> CreateNativePixmapFromHandle(
60 gfx::AcceleratedWidget widget, 58 gfx::AcceleratedWidget widget,
61 gfx::Size size, 59 gfx::Size size,
62 gfx::BufferFormat format, 60 gfx::BufferFormat format,
63 const gfx::NativePixmapHandle& handle) override; 61 const gfx::NativePixmapHandle& handle) override;
64 62
65 private: 63 private:
66 base::ThreadChecker thread_checker_; 64 base::ThreadChecker thread_checker_;
67 65
68 DrmThreadProxy* drm_thread_; 66 DrmThreadProxy* drm_thread_;
69 67
70 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_; 68 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_;
71 69
72 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 70 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
73 }; 71 };
74 72
75 } // namespace ui 73 } // namespace ui
76 74
77 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 75 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/cast/surface_factory_cast.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698