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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/gfx/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index d09dd1092f1e6325545289918ee51644fda33e57..06c53f6f9c72e467d186d409628f980b205156b0 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -8,6 +8,7 @@
#include "base/memory/shared_memory.h"
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/native_widget_types.h"
#if defined(OS_ANDROID)
#include <third_party/khronos/EGL/egl.h>
@@ -34,6 +35,24 @@ struct SurfaceTextureId {
};
#endif
+struct GpuMemoryBufferParams {
reveman 2014/05/27 22:46:01 I don't think we need this. Some of the fields in
alexst (slow to review) 2014/05/28 14:18:57 I'll move the relevant fields into GpuMemoryBuffer
reveman 2014/05/28 16:42:26 Ok, hopefully not needed in the final patch but in
+ GpuMemoryBufferParams()
+ : width(0),
+ height(0),
+ internalformat(0),
+ usage(0),
+ window(kNullPluginWindow),
+ process_handle(base::kNullProcessHandle),
+ client_id(-1) {}
+ size_t width;
+ size_t height;
+ unsigned internalformat;
+ unsigned usage;
+ gfx::PluginWindowHandle window;
+ base::ProcessHandle process_handle;
+ int client_id;
+};
+
struct GpuMemoryBufferHandle {
GpuMemoryBufferHandle()
: type(EMPTY_BUFFER),

Powered by Google App Engine
This is Rietveld 408576698