Chromium Code Reviews| 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), |