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

Unified Diff: content/browser/gpu/browser_native_pixmap_manager_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: depend on crrev.com/1128113011 Created 5 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: content/browser/gpu/browser_native_pixmap_manager_ozone.cc
diff --git a/content/browser/gpu/browser_native_pixmap_manager_ozone.cc b/content/browser/gpu/browser_native_pixmap_manager_ozone.cc
index 0a035c767cbbb2a22d2abeddf9a8b697390de707..c88178f68e4cccea39398b17b85cf3e3c6748edf 100644
--- a/content/browser/gpu/browser_native_pixmap_manager_ozone.cc
+++ b/content/browser/gpu/browser_native_pixmap_manager_ozone.cc
@@ -108,4 +108,13 @@ BrowserMessageFilter* BrowserNativePixmapManager::CreateMessageFilter() {
return new BrowserNativePixmapManagerMessageFilter(this);
}
+scoped_refptr<ui::NativePixmap>
+BrowserNativePixmapManager::CreateFromFileDescriptor(
+ base::FileDescriptor handle,
+ gfx::Size size,
+ ui::SurfaceFactoryOzone::BufferFormat format,
+ ui::SurfaceFactoryOzone::BufferUsage usage) {
+ return pixmap_manager_->CreateFromFileDescriptor(handle, size, format, usage);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698