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