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

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

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index 4e223bf1fc8b8abc9252978c29a53e7aaf5179ff..e97452daea10f88e3a4058bd47df5cc5af59153d 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -11,6 +11,7 @@
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/overlay_transform.h"
#include "ui/ozone/ozone_base_export.h"
@@ -63,7 +64,7 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
// formats once we know what sorts of content, video, etc. we can support.
enum BufferFormat {
UNKNOWN,
- RGBA_8888,
+ BGRA_8888,
RGBX_8888,
RGB_888,
};
@@ -137,7 +138,8 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
gfx::AcceleratedWidget widget,
gfx::Size size,
BufferFormat format,
- BufferUsage usage);
+ BufferUsage usage,
+ gfx::GpuMemoryBufferHandle* handle);
// Sets the overlay plane to switch to at the next page flip.
// |w| specifies the screen to display this overlay plane on.

Powered by Google App Engine
This is Rietveld 408576698