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

Unified Diff: components/mus/gles2/command_buffer_driver.h

Issue 1857243005: Scan-out capable buffers (aka ui::NativePixmap) for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix for windows Created 4 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
« no previous file with comments | « components/mus/gles2/BUILD.gn ('k') | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.h
diff --git a/components/mus/gles2/command_buffer_driver.h b/components/mus/gles2/command_buffer_driver.h
index e28a6e6fcaac9089912049bb3c588c74ee8185b4..51fe2ea3bee9a0ade87a419f12cd741ac35614d0 100644
--- a/components/mus/gles2/command_buffer_driver.h
+++ b/components/mus/gles2/command_buffer_driver.h
@@ -20,23 +20,31 @@
#include "gpu/command_buffer/common/constants.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/system/buffer.h"
+#include "ui/gfx/buffer_types.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/swap_result.h"
#include "ui/mojo/geometry/geometry.mojom.h"
+namespace gfx {
+class GLContext;
+class GLSurface;
+}
+
namespace gpu {
class CommandBufferService;
class CommandExecutor;
class SyncPointClient;
class SyncPointOrderData;
+
namespace gles2 {
class GLES2Decoder;
-}
-}
+} // namespace gles2
-namespace gfx {
-class GLContext;
-class GLSurface;
+} // namespace gpu
+
+namespace ui {
+class NativePixmap;
}
namespace mus {
@@ -79,6 +87,12 @@ class CommandBufferDriver : base::NonThreadSafe {
mojo::SizePtr size,
int32_t format,
int32_t internal_format);
+ void CreateImageNativeOzone(int32_t id,
+ int32_t type,
+ gfx::Size size,
+ gfx::BufferFormat format,
+ uint32_t internal_format,
+ ui::NativePixmap* pixmap);
void DestroyImage(int32_t id);
bool IsScheduled() const;
bool HasUnprocessedCommands() const;
« no previous file with comments | « components/mus/gles2/BUILD.gn ('k') | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698