| Index: ui/gl/gl_image.h
|
| diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
|
| index 45303fd64602321259973a4090478e645390ca37..4b1e9da3786d869083f19ccc5dd45539a4fbec1d 100644
|
| --- a/ui/gl/gl_image.h
|
| +++ b/ui/gl/gl_image.h
|
| @@ -6,6 +6,9 @@
|
| #define UI_GL_GL_IMAGE_H_
|
|
|
| #include "base/memory/ref_counted.h"
|
| +#include "ui/gfx/overlay_transform.h"
|
| +#include "ui/gfx/rect.h"
|
| +#include "ui/gfx/rect_f.h"
|
| #include "ui/gfx/size.h"
|
| #include "ui/gl/gl_export.h"
|
|
|
| @@ -41,6 +44,20 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
|
| // Called after the texture image data has been modified.
|
| virtual void DidModifyTexImage() = 0;
|
|
|
| + // Schedule image as an overlay plane to be shown at swap time.
|
| + // |z_order| specifies the stacking order of the plane relative to the
|
| + // main framebuffer located at index 0. For the case where there is no
|
| + // main framebuffer, overlays may be scheduled at 0, taking its place.
|
| + // |transform| specifies how the buffer is to be transformed during
|
| + // composition.
|
| + // |bounds_rect| specify where it is supposed to be on the screen in pixels.
|
| + // |crop_rect| specifies the region within the buffer to be placed inside
|
| + // |bounds_rect|.
|
| + virtual bool ScheduleOverlayPlane(int z_order,
|
| + OverlayTransform transform,
|
| + const Rect& bounds_rect,
|
| + const RectF& crop_rect) = 0;
|
| +
|
| // Indicate that image should be released after use.
|
| // (For an Android work-around only).
|
| virtual void SetReleaseAfterUse();
|
|
|