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

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

Issue 9702081: Splitting GpuMemoryAllocation into two parts: for renderer and browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 04278dd2d67642c6e82063166053e077dd69b150..8b948a70822c29d260925a11a70c9c2ce6bb9cf4 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -19,6 +19,7 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "media/video/video_decode_accelerator.h"
+#include "ui/gfx/gl/gl_surface.h"
mmocny 2012/03/15 19:11:43 will remove.
#include "ui/gfx/gl/gpu_preference.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
@@ -119,10 +120,9 @@ IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo)
#endif
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocation)
+IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocationForRenderer)
IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes)
- IPC_STRUCT_TRAITS_MEMBER(has_frontbuffer)
- IPC_STRUCT_TRAITS_MEMBER(has_backbuffer)
+ IPC_STRUCT_TRAITS_MEMBER(suggest_have_backbuffer)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle)
@@ -441,9 +441,13 @@ IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck)
// Send to stub on surface visibility change.
IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
+// Request that the GPU process create/destroy the surface backbuffer.
+IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_CreateBackbuffer)
+IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_DestroyBackbuffer)
+
// Sent to proxy when the gpu memory manager changes its memory allocation.
IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
- GpuMemoryAllocation /* allocation */)
+ GpuMemoryAllocationForRenderer /* allocation */)
//------------------------------------------------------------------------------
// Accelerated Video Decoder Messages

Powered by Google App Engine
This is Rietveld 408576698