| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/native_library.h" | 10 #include "base/native_library.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // caller. desired_list contains list of desired EGL properties and values. | 122 // caller. desired_list contains list of desired EGL properties and values. |
| 123 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); | 123 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); |
| 124 | 124 |
| 125 // Get the hal struct to check for overlay support. | 125 // Get the hal struct to check for overlay support. |
| 126 virtual OverlayCandidatesOzone* GetOverlayCandidates( | 126 virtual OverlayCandidatesOzone* GetOverlayCandidates( |
| 127 gfx::AcceleratedWidget w); | 127 gfx::AcceleratedWidget w); |
| 128 | 128 |
| 129 // Create a single native buffer to be used for overlay planes or zero copy | 129 // Create a single native buffer to be used for overlay planes or zero copy |
| 130 // for |widget| representing a particular display controller or default | 130 // for |widget| representing a particular display controller or default |
| 131 // display controller for kNullAcceleratedWidget. | 131 // display controller for kNullAcceleratedWidget. |
| 132 // It can be called on any thread. |
| 132 virtual scoped_refptr<NativePixmap> CreateNativePixmap( | 133 virtual scoped_refptr<NativePixmap> CreateNativePixmap( |
| 133 gfx::AcceleratedWidget widget, | 134 gfx::AcceleratedWidget widget, |
| 134 gfx::Size size, | 135 gfx::Size size, |
| 135 BufferFormat format, | 136 BufferFormat format, |
| 136 BufferUsage usage); | 137 BufferUsage usage); |
| 137 | 138 |
| 138 // Sets the overlay plane to switch to at the next page flip. | 139 // Sets the overlay plane to switch to at the next page flip. |
| 139 // |w| specifies the screen to display this overlay plane on. | 140 // |w| specifies the screen to display this overlay plane on. |
| 140 // |plane_z_order| specifies the stacking order of the plane relative to the | 141 // |plane_z_order| specifies the stacking order of the plane relative to the |
| 141 // main framebuffer located at index 0. | 142 // main framebuffer located at index 0. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 162 // such as MAP for zero copy or SCANOUT for display controller. | 163 // such as MAP for zero copy or SCANOUT for display controller. |
| 163 virtual bool CanCreateNativePixmap(BufferUsage usage); | 164 virtual bool CanCreateNativePixmap(BufferUsage usage); |
| 164 | 165 |
| 165 private: | 166 private: |
| 166 static SurfaceFactoryOzone* impl_; // not owned | 167 static SurfaceFactoryOzone* impl_; // not owned |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 } // namespace ui | 170 } // namespace ui |
| 170 | 171 |
| 171 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 172 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| OLD | NEW |