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

Side by Side Diff: content/common/gpu_host_messages.h

Issue 2701233002: gpu: Use mojom.GpuService API for memory allocation. (Closed)
Patch Set: . Created 3 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 unified diff | Download patch
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "gpu/command_buffer/common/sync_token.h" 10 #include "gpu/command_buffer/common/sync_token.h"
11 #include "gpu/config/gpu_feature_info.h" 11 #include "gpu/config/gpu_feature_info.h"
12 #include "gpu/config/gpu_info.h" 12 #include "gpu/config/gpu_info.h"
13 #include "gpu/ipc/common/surface_handle.h" 13 #include "gpu/ipc/common/surface_handle.h"
14 #include "ipc/ipc_channel_handle.h" 14 #include "ipc/ipc_channel_handle.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_message_start.h" 16 #include "ipc/ipc_message_start.h"
17 #include "ui/gfx/gpu_memory_buffer.h" 17 #include "ui/gfx/gpu_memory_buffer.h"
18 #include "ui/gfx/ipc/gfx_param_traits.h" 18 #include "ui/gfx/ipc/gfx_param_traits.h"
19 19
20 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 22
23 #define IPC_MESSAGE_START GpuMsgStart 23 #define IPC_MESSAGE_START GpuMsgStart
24 24
25 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params)
26 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id)
27 IPC_STRUCT_MEMBER(gfx::Size, size)
28 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
29 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage)
30 IPC_STRUCT_MEMBER(int32_t, client_id)
31 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle)
32 IPC_STRUCT_END()
33
34 //------------------------------------------------------------------------------ 25 //------------------------------------------------------------------------------
35 // GPU Messages 26 // GPU Messages
36 // These are messages from the browser to the GPU process. 27 // These are messages from the browser to the GPU process.
37 28
38 // Tells the GPU process to create a new gpu memory buffer.
39 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer,
40 GpuMsg_CreateGpuMemoryBuffer_Params)
41
42 // Tells the GPU process to destroy buffer.
43 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer,
44 gfx::GpuMemoryBufferId, /* id */
45 int32_t, /* client_id */
46 gpu::SyncToken /* sync_token */)
47
48 // Tells the GPU process that the browser has seen a GPU switch. 29 // Tells the GPU process that the browser has seen a GPU switch.
49 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) 30 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched)
50 31
51 //------------------------------------------------------------------------------ 32 //------------------------------------------------------------------------------
52 // GPU Host Messages 33 // GPU Host Messages
53 // These are messages to the browser. 34 // These are messages to the browser.
54 35
55 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message.
56 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated,
57 gfx::GpuMemoryBufferHandle /* handle */)
58
59 // Sent by the GPU process to indicate that a fields trial has been activated. 36 // Sent by the GPU process to indicate that a fields trial has been activated.
60 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) 37 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */)
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698