| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OZONE_EGL_H_ | 5 #ifndef UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ |
| 6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ | 6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/ozone/ozone_base_export.h" | 10 #include "ui/ozone/ozone_base_export.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // InitializeHardware. Returns an empty scoped_ptr on error. | 44 // InitializeHardware. Returns an empty scoped_ptr on error. |
| 45 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; | 45 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; |
| 46 | 46 |
| 47 // Sets the overlay plane to switch to at the next page flip. | 47 // Sets the overlay plane to switch to at the next page flip. |
| 48 // |plane_z_order| specifies the stacking order of the plane relative to the | 48 // |plane_z_order| specifies the stacking order of the plane relative to the |
| 49 // main framebuffer located at index 0. | 49 // main framebuffer located at index 0. |
| 50 // |plane_transform| specifies how the buffer is to be transformed during. | 50 // |plane_transform| specifies how the buffer is to be transformed during. |
| 51 // composition. | 51 // composition. |
| 52 // |buffer| to be presented by the overlay. | 52 // |buffer| to be presented by the overlay. |
| 53 // |display_bounds| specify where it is supposed to be on the screen. | 53 // |display_bounds| specify where it is supposed to be on the screen. |
| 54 // |crop_rect| specifies the region within the buffer to be placed inside | 54 // |crop_rect| specifies the region within the buffer to be placed |
| 55 // |display_bounds|. | 55 // inside |display_bounds|. This is specified in texture coordinates, in the |
| 56 // range of [0,1]. |
| 56 virtual bool ScheduleOverlayPlane(int plane_z_order, | 57 virtual bool ScheduleOverlayPlane(int plane_z_order, |
| 57 gfx::OverlayTransform plane_transform, | 58 gfx::OverlayTransform plane_transform, |
| 58 scoped_refptr<NativePixmap> buffer, | 59 scoped_refptr<NativePixmap> buffer, |
| 59 const gfx::Rect& display_bounds, | 60 const gfx::Rect& display_bounds, |
| 60 const gfx::RectF& crop_rect) = 0; | 61 const gfx::RectF& crop_rect) = 0; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace ui | 64 } // namespace ui |
| 64 | 65 |
| 65 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ | 66 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ |
| OLD | NEW |