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

Unified Diff: ui/ozone/platform/drm/gbm_surface_factory.h

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/platform/drm/gbm_surface_factory.h
diff --git a/ui/ozone/platform/drm/gbm_surface_factory.h b/ui/ozone/platform/drm/gbm_surface_factory.h
index 6d4f83d513552df304e79f1e60266d37bb9f55f7..a278731a12d25af0a5dc0231d0e1c066882b7e39 100644
--- a/ui/ozone/platform/drm/gbm_surface_factory.h
+++ b/ui/ozone/platform/drm/gbm_surface_factory.h
@@ -39,6 +39,9 @@ class GbmSurfaceFactory : public DrmSurfaceFactory {
gfx::Size size,
BufferFormat format,
BufferUsage usage) override;
+ gfx::GpuMemoryBufferHandle ExportGpuMemoryBufferHandle(
+ gfx::AcceleratedWidget widget,
+ scoped_refptr<NativePixmap> pixmap) override;
OverlayCandidatesOzone* GetOverlayCandidates(
gfx::AcceleratedWidget w) override;
bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
@@ -48,7 +51,8 @@ class GbmSurfaceFactory : public DrmSurfaceFactory {
const gfx::Rect& display_bounds,
const gfx::RectF& crop_rect) override;
bool CanShowPrimaryPlaneAsOverlay() override;
- bool CanCreateNativePixmap(BufferUsage usage) override;
+ std::vector<Configuration> GetSupportedNativePixmapConfigurations()
+ const override;
private:
scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);

Powered by Google App Engine
This is Rietveld 408576698