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

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, 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/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b8e291938a5f6b0ebe343c18d33178e9465d5feb 100644
--- a/ui/ozone/public/surface_factory_ozone.cc
+++ b/ui/ozone/public/surface_factory_ozone.cc
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include "base/command_line.h"
+#include "ui/ozone/public/native_pixmap.h"
#include "ui/ozone/public/surface_ozone_canvas.h"
#include "ui/ozone/public/surface_ozone_egl.h"
@@ -56,20 +57,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::CreateNativePixmap(
gfx::Size size,
BufferFormat format) {
- return 0;
+ return NULL;
}
+bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
+ return false;
+}
} // namespace ui
« no previous file with comments | « ui/ozone/public/surface_factory_ozone.h ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698