| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 gfx::AcceleratedWidget widget, | 119 gfx::AcceleratedWidget widget, |
| 120 gfx::Size size, | 120 gfx::Size size, |
| 121 BufferFormat format, | 121 BufferFormat format, |
| 122 BufferUsage usage); | 122 BufferUsage usage); |
| 123 | 123 |
| 124 // Returns true if overlays can be shown at z-index 0, replacing the main | 124 // Returns true if overlays can be shown at z-index 0, replacing the main |
| 125 // surface. Combined with surfaceless extensions, it allows for an | 125 // surface. Combined with surfaceless extensions, it allows for an |
| 126 // overlay-only mode. | 126 // overlay-only mode. |
| 127 virtual bool CanShowPrimaryPlaneAsOverlay(); | 127 virtual bool CanShowPrimaryPlaneAsOverlay(); |
| 128 | 128 |
| 129 // Returns true if the platform is able to create buffers for a specific usage | |
| 130 // such as MAP for zero copy or SCANOUT for display controller. | |
| 131 virtual bool CanCreateNativePixmap(BufferUsage usage); | |
| 132 | |
| 133 protected: | 129 protected: |
| 134 SurfaceFactoryOzone(); | 130 SurfaceFactoryOzone(); |
| 135 virtual ~SurfaceFactoryOzone(); | 131 virtual ~SurfaceFactoryOzone(); |
| 136 | 132 |
| 137 private: | 133 private: |
| 138 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); | 134 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); |
| 139 }; | 135 }; |
| 140 | 136 |
| 141 } // namespace ui | 137 } // namespace ui |
| 142 | 138 |
| 143 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 139 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
| OLD | NEW |