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

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

Issue 706273002: Add ability to query and allocate zero copy buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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') | no next file » | 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 46cee88d6b318a81e2eeb4567c8fa4d634af623a..66263803fa6ed46b72adc5cdbb720cb52f93aad5 100644
--- a/ui/ozone/public/surface_factory_ozone.cc
+++ b/ui/ozone/public/surface_factory_ozone.cc
@@ -66,7 +66,8 @@ ui::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
gfx::Size size,
- BufferFormat format) {
+ BufferFormat format,
+ BufferUsage usage) {
return NULL;
}
@@ -83,4 +84,9 @@ bool SurfaceFactoryOzone::ScheduleOverlayPlane(
bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
return false;
}
+
+bool SurfaceFactoryOzone::CanCreateNativePixmap(BufferUsage usage) {
+ return false;
+}
+
} // namespace ui
« no previous file with comments | « 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