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

Unified Diff: content/common/gpu/gpu_messages.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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: content/common/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index ee301ab42771e3db613082a31f54518efd7e9990..2b3a732115713d2bed9943ff048c7997a39a4c8b 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -33,6 +33,7 @@
#include "ui/events/latency_info.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/gpu_memory_buffer.h"
+#include "ui/gfx/ipc/gfx_param_traits.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/swap_result.h"
#include "ui/gl/gpu_preference.h"
@@ -84,8 +85,8 @@ IPC_STRUCT_END()
IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params)
IPC_STRUCT_MEMBER(int32, id)
IPC_STRUCT_MEMBER(gfx::Size, size)
- IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format)
- IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage)
+ IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
+ IPC_STRUCT_MEMBER(gfx::BufferUsage, usage)
IPC_STRUCT_MEMBER(int32, client_id)
IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle)
IPC_STRUCT_END()
@@ -646,7 +647,7 @@ IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage,
int32 /* id */,
gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */,
gfx::Size /* size */,
- gfx::GpuMemoryBuffer::Format /* format */,
+ gfx::BufferFormat /* format */,
uint32 /* internalformat */)
// Destroy a previously created image.
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc ('k') | content/common/gpu/media/vaapi_drm_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698