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

Unified Diff: ui/ozone/public/surface_factory_ozone.cc

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_factory_ozone.cc
diff --git a/ui/ozone/public/surface_factory_ozone.cc b/ui/ozone/public/surface_factory_ozone.cc
index 9d33be43524b2952e1a518660a89edd7485f9985..bbbc8b532d1a5854f05e6f2582dfda5a1f6dc463 100644
--- a/ui/ozone/public/surface_factory_ozone.cc
+++ b/ui/ozone/public/surface_factory_ozone.cc
@@ -56,20 +56,13 @@ ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
return NULL;
}
-void SurfaceFactoryOzone::ScheduleOverlayPlane(
- gfx::AcceleratedWidget w,
- int plane_z_order,
- gfx::OverlayTransform plane_transform,
- ui::NativeBufferOzone buffer,
- const gfx::Rect& display_bounds,
- gfx::RectF crop_rect) {
- NOTREACHED();
-}
-
-ui::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer(
+scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativeBuffer(
gfx::Size size,
BufferFormat format) {
- return 0;
+ return NULL;
}
+bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
+ return false;
+}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698