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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not-leak USE_OZONE_GBM, GetSupportedGpuMemoryBufferConfigurations from ozone, return handle Created 5 years, 7 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 3780bc827a0223279c8fbf179193fba851809bdd..aea1024f023d28f37356dcd757622a9acbd955f3 100644
--- a/ui/ozone/public/surface_factory_ozone.cc
+++ b/ui/ozone/public/surface_factory_ozone.cc
@@ -72,6 +72,12 @@ scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
return NULL;
}
+gfx::GpuMemoryBufferHandle SurfaceFactoryOzone::ExportGpuMemoryBufferHandle(
+ gfx::AcceleratedWidget widget,
+ scoped_refptr<NativePixmap> pixmap) {
+ return gfx::GpuMemoryBufferHandle();
+}
+
bool SurfaceFactoryOzone::ScheduleOverlayPlane(
gfx::AcceleratedWidget widget,
int plane_z_order,
@@ -86,8 +92,9 @@ bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
return false;
}
-bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) {
- return false;
+std::vector<SurfaceFactoryOzone::Configuration>
+SurfaceFactoryOzone::GetSupportedNativePixmapConfigurations() const {
+ return std::vector<Configuration>();
}
} // namespace ui
« ui/ozone/public/surface_factory_ozone.h ('K') | « ui/ozone/public/surface_factory_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698