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

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

Issue 1738973004: Fix EGL configs with GLSurfaceOzoneSurfaceless. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back factory method. Created 4 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
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 13 matching lines...) Expand all
24 public: 24 public:
25 explicit GbmSurfaceFactory(DrmThreadProxy* drm_thread); 25 explicit GbmSurfaceFactory(DrmThreadProxy* drm_thread);
26 ~GbmSurfaceFactory() override; 26 ~GbmSurfaceFactory() override;
27 27
28 void RegisterSurface(gfx::AcceleratedWidget widget, GbmSurfaceless* surface); 28 void RegisterSurface(gfx::AcceleratedWidget widget, GbmSurfaceless* surface);
29 void UnregisterSurface(gfx::AcceleratedWidget widget); 29 void UnregisterSurface(gfx::AcceleratedWidget widget);
30 GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const; 30 GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const;
31 31
32 // SurfaceFactoryOzone: 32 // SurfaceFactoryOzone:
33 intptr_t GetNativeDisplay() override; 33 intptr_t GetNativeDisplay() override;
34 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
34 std::vector<gfx::BufferFormat> GetScanoutFormats( 35 std::vector<gfx::BufferFormat> GetScanoutFormats(
35 gfx::AcceleratedWidget widget) override; 36 gfx::AcceleratedWidget widget) override;
36 bool LoadEGLGLES2Bindings( 37 bool LoadEGLGLES2Bindings(
37 AddGLLibraryCallback add_gl_library, 38 AddGLLibraryCallback add_gl_library,
38 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; 39 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
39 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 40 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
40 gfx::AcceleratedWidget widget) override; 41 gfx::AcceleratedWidget widget) override;
41 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 42 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
42 gfx::AcceleratedWidget w) override; 43 gfx::AcceleratedWidget w) override;
43 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( 44 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget(
(...skipping 12 matching lines...) Expand all
56 DrmThreadProxy* drm_thread_; 57 DrmThreadProxy* drm_thread_;
57 58
58 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_; 59 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 61 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
61 }; 62 };
62 63
63 } // namespace ui 64 } // namespace ui
64 65
65 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 66 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698