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

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

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/gl/init/gl_initializer_ozone.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('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 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/native_library.h" 16 #include "base/native_library.h"
17 #include "ui/gfx/buffer_types.h" 17 #include "ui/gfx/buffer_types.h"
18 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 #include "ui/gfx/overlay_transform.h" 20 #include "ui/gfx/overlay_transform.h"
21 #include "ui/gl/gl_implementation.h" 21 #include "ui/gl/gl_implementation.h"
22 #include "ui/gl/gl_surface.h"
23 #include "ui/ozone/ozone_base_export.h" 22 #include "ui/ozone/ozone_base_export.h"
24 #include "ui/ozone/public/gl_ozone.h" 23 #include "ui/ozone/public/gl_ozone.h"
25 #include "ui/ozone/public/native_pixmap.h" 24 #include "ui/ozone/public/native_pixmap.h"
26 25
27 namespace ui { 26 namespace ui {
28 27
29 class NativePixmap; 28 class NativePixmap;
30 class SurfaceOzoneCanvas; 29 class SurfaceOzoneCanvas;
31 30
32 // The Ozone interface allows external implementations to hook into Chromium to 31 // The Ozone interface allows external implementations to hook into Chromium to
(...skipping 27 matching lines...) Expand all
60 class OZONE_BASE_EXPORT SurfaceFactoryOzone { 59 class OZONE_BASE_EXPORT SurfaceFactoryOzone {
61 public: 60 public:
62 // Returns a list of allowed GL implementations. The default implementation 61 // Returns a list of allowed GL implementations. The default implementation
63 // will be the first item. 62 // will be the first item.
64 virtual std::vector<gl::GLImplementation> GetAllowedGLImplementations(); 63 virtual std::vector<gl::GLImplementation> GetAllowedGLImplementations();
65 64
66 // Returns the GLOzone to use for the specified GL implementation, or null if 65 // Returns the GLOzone to use for the specified GL implementation, or null if
67 // GL implementation doesn't exist. 66 // GL implementation doesn't exist.
68 virtual GLOzone* GetGLOzone(gl::GLImplementation implementation); 67 virtual GLOzone* GetGLOzone(gl::GLImplementation implementation);
69 68
70 // DEPRECATED(kylechar): Implement GLOzoneEGL instead.
71 virtual intptr_t GetNativeDisplay();
72
73 // DEPRECATED(kylechar): Implement GLOzone instead.
74 virtual scoped_refptr<gl::GLSurface> CreateViewGLSurface(
75 gl::GLImplementation implementation,
76 gfx::AcceleratedWidget widget);
77
78 // DEPRECATED(kylechar): Implement GLOzone instead.
79 virtual scoped_refptr<gl::GLSurface> CreateSurfacelessViewGLSurface(
80 gl::GLImplementation implementation,
81 gfx::AcceleratedWidget widget);
82
83 // DEPRECATED(kylechar): Implement GLOzone instead.
84 virtual scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
85 gl::GLImplementation implementation,
86 const gfx::Size& size);
87
88 // Create SurfaceOzoneCanvas for the specified gfx::AcceleratedWidget. 69 // Create SurfaceOzoneCanvas for the specified gfx::AcceleratedWidget.
89 // 70 //
90 // Note: The platform must support creation of SurfaceOzoneCanvas from the 71 // Note: The platform must support creation of SurfaceOzoneCanvas from the
91 // Browser Process using only the handle contained in gfx::AcceleratedWidget. 72 // Browser Process using only the handle contained in gfx::AcceleratedWidget.
92 virtual std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 73 virtual std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
93 gfx::AcceleratedWidget widget); 74 gfx::AcceleratedWidget widget);
94 75
95 // DEPRECATED(kylechar): Implement GLOzoneEGL instead.
96 virtual bool LoadEGLGLES2Bindings();
97
98 // Returns all scanout formats for |widget| representing a particular display 76 // Returns all scanout formats for |widget| representing a particular display
99 // controller or default display controller for kNullAcceleratedWidget. 77 // controller or default display controller for kNullAcceleratedWidget.
100 virtual std::vector<gfx::BufferFormat> GetScanoutFormats( 78 virtual std::vector<gfx::BufferFormat> GetScanoutFormats(
101 gfx::AcceleratedWidget widget); 79 gfx::AcceleratedWidget widget);
102 80
103 // Create a single native buffer to be used for overlay planes or zero copy 81 // Create a single native buffer to be used for overlay planes or zero copy
104 // for |widget| representing a particular display controller or default 82 // for |widget| representing a particular display controller or default
105 // display controller for kNullAcceleratedWidget. 83 // display controller for kNullAcceleratedWidget.
106 // It can be called on any thread. 84 // It can be called on any thread.
107 virtual scoped_refptr<NativePixmap> CreateNativePixmap( 85 virtual scoped_refptr<NativePixmap> CreateNativePixmap(
(...skipping 14 matching lines...) Expand all
122 SurfaceFactoryOzone(); 100 SurfaceFactoryOzone();
123 virtual ~SurfaceFactoryOzone(); 101 virtual ~SurfaceFactoryOzone();
124 102
125 private: 103 private:
126 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); 104 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone);
127 }; 105 };
128 106
129 } // namespace ui 107 } // namespace ui
130 108
131 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 109 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/gl/init/gl_initializer_ozone.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698