Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: ui/ozone/public/surface_ozone_egl.h

Issue 365193003: Change NativeBufferOzone to be an object and move the overlay calls to the surface object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/ozone/public/surface_ozone_egl.h
diff --git a/ui/ozone/public/surface_ozone_egl.h b/ui/ozone/public/surface_ozone_egl.h
index fa7e43a3ef1ec86ccb1aad0524ab5ff5eb58a8f6..1f1486968206f0e4b3b262393cb31dd527c7408f 100644
--- a/ui/ozone/public/surface_ozone_egl.h
+++ b/ui/ozone/public/surface_ozone_egl.h
@@ -15,6 +15,7 @@ class VSyncProvider;
}
namespace ui {
+class NativePixmap;
// The platform-specific part of an EGL surface.
//
@@ -42,6 +43,21 @@ class OZONE_BASE_EXPORT SurfaceOzoneEGL {
// outside of the sandbox, they must have been completed in
// InitializeHardware. Returns an empty scoped_ptr on error.
virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
+
+ // Sets the overlay plane to switch to at the next page flip.
+ // |plane_z_order| specifies the stacking order of the plane relative to the
+ // main framebuffer located at index 0.
+ // |plane_transform| specifies how the buffer is to be transformed during.
+ // composition.
+ // |buffer| to be presented by the overlay.
+ // |display_bounds| specify where it is supposed to be on the screen.
+ // |crop_rect| specifies the region within the buffer to be placed inside
+ // |display_bounds|.
+ virtual bool ScheduleOverlayPlane(int plane_z_order,
+ gfx::OverlayTransform plane_transform,
+ ui::NativePixmap* buffer,
alexst (slow to review) 2014/07/03 18:30:32 Since we are ref counting these, maybe raw ptr isn
achaulk 2014/07/03 19:49:44 I was planning on taking references internally any
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect) = 0;
};
} // namespace ui
« ui/ozone/public/surface_factory_ozone.h ('K') | « ui/ozone/public/surface_factory_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698