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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 gfx::OverlayTransform plane_transform, | 152 gfx::OverlayTransform plane_transform, |
153 scoped_refptr<NativePixmap> buffer, | 153 scoped_refptr<NativePixmap> buffer, |
154 const gfx::Rect& display_bounds, | 154 const gfx::Rect& display_bounds, |
155 const gfx::RectF& crop_rect); | 155 const gfx::RectF& crop_rect); |
156 | 156 |
157 // Returns true if overlays can be shown at z-index 0, replacing the main | 157 // Returns true if overlays can be shown at z-index 0, replacing the main |
158 // surface. Combined with surfaceless extensions, it allows for an | 158 // surface. Combined with surfaceless extensions, it allows for an |
159 // overlay-only mode. | 159 // overlay-only mode. |
160 virtual bool CanShowPrimaryPlaneAsOverlay(); | 160 virtual bool CanShowPrimaryPlaneAsOverlay(); |
161 | 161 |
162 // Returns true if the platform is able to create buffers for a specific usage | |
163 // such as MAP for zero copy or SCANOUT for display controller. | |
164 virtual bool CanCreateNativePixmap(BufferUsage usage); | |
165 | |
166 private: | 162 private: |
167 static SurfaceFactoryOzone* impl_; // not owned | 163 static SurfaceFactoryOzone* impl_; // not owned |
168 }; | 164 }; |
169 | 165 |
170 } // namespace ui | 166 } // namespace ui |
171 | 167 |
172 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ | 168 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ |
OLD | NEW |