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

Unified Diff: ui/ozone/public/surface_factory_ozone.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, 5 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
« no previous file with comments | « ui/ozone/public/native_pixmap.h ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index 4702d69a59d4e0d0e886b03de92cea7dea007ca6..eb6801042b2251ba23faab0f4c77b6ba286773f1 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -20,7 +20,7 @@ class SkCanvas;
namespace ui {
-typedef intptr_t NativeBufferOzone;
+class NativePixmap;
class OverlayCandidatesOzone;
class SurfaceOzoneCanvas;
class SurfaceOzoneEGL;
@@ -134,25 +134,15 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
virtual OverlayCandidatesOzone* GetOverlayCandidates(
gfx::AcceleratedWidget w);
- // 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 void ScheduleOverlayPlane(gfx::AcceleratedWidget w,
- int plane_z_order,
- gfx::OverlayTransform plane_transform,
- ui::NativeBufferOzone buffer,
- const gfx::Rect& display_bounds,
- gfx::RectF crop_rect);
-
// Cleate a single native buffer to be used for overlay planes.
- virtual ui::NativeBufferOzone CreateNativeBuffer(gfx::Size size,
- BufferFormat format);
+ virtual scoped_refptr<NativePixmap> CreateNativePixmap(
+ gfx::Size size,
+ BufferFormat format);
+
+ // Returns true if overlays can be shown at z-index 0, replacing the main
+ // surface. Combined with surfaceless extensions, it allows for an
+ // overlay-only mode.
+ virtual bool CanShowPrimaryPlaneAsOverlay();
private:
static SurfaceFactoryOzone* impl_; // not owned
« no previous file with comments | « ui/ozone/public/native_pixmap.h ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698