| OLD | NEW |
| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Browser Process using only the handle contained in gfx::AcceleratedWidget. | 85 // Browser Process using only the handle contained in gfx::AcceleratedWidget. |
| 86 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 86 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 87 gfx::AcceleratedWidget widget); | 87 gfx::AcceleratedWidget widget); |
| 88 | 88 |
| 89 // Sets up GL bindings for the native surface. Takes two callback parameters | 89 // Sets up GL bindings for the native surface. Takes two callback parameters |
| 90 // that allow Ozone to register the GL bindings. | 90 // that allow Ozone to register the GL bindings. |
| 91 virtual bool LoadEGLGLES2Bindings( | 91 virtual bool LoadEGLGLES2Bindings( |
| 92 AddGLLibraryCallback add_gl_library, | 92 AddGLLibraryCallback add_gl_library, |
| 93 SetGLGetProcAddressProcCallback set_gl_get_proc_address) = 0; | 93 SetGLGetProcAddressProcCallback set_gl_get_proc_address) = 0; |
| 94 | 94 |
| 95 // Returns an array of EGL properties, which can be used in any EGL function |
| 96 // used to select a display configuration. Note that all properties should be |
| 97 // immediately followed by the corresponding desired value and array should be |
| 98 // terminated with EGL_NONE. Ownership of the array is not transferred to |
| 99 // caller. desired_list contains list of desired EGL properties and values. |
| 100 virtual const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list); |
| 101 |
| 95 // Returns all scanout formats for |widget| representing a particular display | 102 // Returns all scanout formats for |widget| representing a particular display |
| 96 // controller or default display controller for kNullAcceleratedWidget. | 103 // controller or default display controller for kNullAcceleratedWidget. |
| 97 virtual std::vector<gfx::BufferFormat> GetScanoutFormats( | 104 virtual std::vector<gfx::BufferFormat> GetScanoutFormats( |
| 98 gfx::AcceleratedWidget widget); | 105 gfx::AcceleratedWidget widget); |
| 99 | 106 |
| 100 // Create a single native buffer to be used for overlay planes or zero copy | 107 // Create a single native buffer to be used for overlay planes or zero copy |
| 101 // for |widget| representing a particular display controller or default | 108 // for |widget| representing a particular display controller or default |
| 102 // display controller for kNullAcceleratedWidget. | 109 // display controller for kNullAcceleratedWidget. |
| 103 // It can be called on any thread. | 110 // It can be called on any thread. |
| 104 virtual scoped_refptr<NativePixmap> CreateNativePixmap( | 111 virtual scoped_refptr<NativePixmap> CreateNativePixmap( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 116 SurfaceFactoryOzone(); | 123 SurfaceFactoryOzone(); |
| 117 virtual ~SurfaceFactoryOzone(); | 124 virtual ~SurfaceFactoryOzone(); |
| 118 | 125 |
| 119 private: | 126 private: |
| 120 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); | 127 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); |
| 121 }; | 128 }; |
| 122 | 129 |
| 123 } // namespace ui | 130 } // namespace ui |
| 124 | 131 |
| 125 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 132 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| OLD | NEW |