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

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

Issue 1823763003: Move more files to gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GYP build Created 4 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 unified diff | Download patch
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 "content/common/establish_channel_params.h" 10 #include "content/common/establish_channel_params.h"
11 #include "content/common/gpu/gpu_memory_uma_stats.h"
12 #include "gpu/command_buffer/common/sync_token.h" 11 #include "gpu/command_buffer/common/sync_token.h"
13 #include "gpu/command_buffer/common/value_state.h" 12 #include "gpu/command_buffer/common/value_state.h"
14 #include "gpu/command_buffer/service/gpu_preferences.h" 13 #include "gpu/command_buffer/service/gpu_preferences.h"
15 #include "gpu/config/gpu_info.h" 14 #include "gpu/config/gpu_info.h"
16 #include "gpu/ipc/common/gpu_command_buffer_traits.h" 15 #include "gpu/ipc/common/gpu_command_buffer_traits.h"
16 #include "gpu/ipc/common/gpu_memory_uma_stats.h"
17 #include "gpu/ipc/common/gpu_param_traits.h" 17 #include "gpu/ipc/common/gpu_param_traits.h"
18 #include "gpu/ipc/common/memory_stats.h" 18 #include "gpu/ipc/common/memory_stats.h"
19 #include "gpu/ipc/common/surface_handle.h" 19 #include "gpu/ipc/common/surface_handle.h"
20 #include "ipc/ipc_channel_handle.h" 20 #include "ipc/ipc_channel_handle.h"
21 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
22 #include "ipc/ipc_message_start.h" 22 #include "ipc/ipc_message_start.h"
23 #include "ui/events/ipc/latency_info_param_traits.h" 23 #include "ui/events/ipc/latency_info_param_traits.h"
24 #include "ui/gfx/gpu_memory_buffer.h" 24 #include "ui/gfx/gpu_memory_buffer.h"
25 #include "ui/gfx/ipc/gfx_param_traits.h" 25 #include "ui/gfx/ipc/gfx_param_traits.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 #include "url/ipc/url_param_traits.h" 27 #include "url/ipc/url_param_traits.h"
28 28
29 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
30 #include "content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h" 30 #include "content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h"
31 #include "content/common/gpu/buffer_presented_params_mac.h" 31 #include "content/common/gpu/buffer_presented_params_mac.h"
32 #include "ui/base/cocoa/remote_layer_api.h" 32 #include "ui/base/cocoa/remote_layer_api.h"
33 #include "ui/gfx/mac/io_surface.h" 33 #include "ui/gfx/mac/io_surface.h"
34 #endif 34 #endif
35 35
36 #undef IPC_MESSAGE_EXPORT 36 #undef IPC_MESSAGE_EXPORT
37 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 37 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
38 38
39 #define IPC_MESSAGE_START GpuMsgStart 39 #define IPC_MESSAGE_START GpuMsgStart
40 40
41 IPC_STRUCT_TRAITS_BEGIN(content::GPUMemoryUmaStats) 41 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUMemoryUmaStats)
42 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) 42 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current)
43 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) 43 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max)
44 IPC_STRUCT_TRAITS_END() 44 IPC_STRUCT_TRAITS_END()
45 45
46 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats) 46 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats)
47 IPC_STRUCT_TRAITS_MEMBER(process_map) 47 IPC_STRUCT_TRAITS_MEMBER(process_map)
48 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) 48 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated)
49 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_historical_max) 49 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_historical_max)
50 IPC_STRUCT_TRAITS_END() 50 IPC_STRUCT_TRAITS_END()
51 51
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, 272 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext,
273 bool /* offscreen */, 273 bool /* offscreen */,
274 gpu::error::ContextLostReason /* reason */, 274 gpu::error::ContextLostReason /* reason */,
275 GURL /* url */) 275 GURL /* url */)
276 276
277 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */) 277 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */)
278 278
279 // Tells the browser about GPU memory usage statistics for UMA logging. 279 // Tells the browser about GPU memory usage statistics for UMA logging.
280 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, 280 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats,
281 content::GPUMemoryUmaStats /* GPU memory UMA stats */) 281 gpu::GPUMemoryUmaStats /* GPU memory UMA stats */)
282 282
283 // Tells the browser that a context has subscribed to a new target and 283 // Tells the browser that a context has subscribed to a new target and
284 // the browser should start sending the corresponding information 284 // the browser should start sending the corresponding information
285 IPC_MESSAGE_CONTROL2(GpuHostMsg_AddSubscription, 285 IPC_MESSAGE_CONTROL2(GpuHostMsg_AddSubscription,
286 int32_t /* client_id */, 286 int32_t /* client_id */,
287 unsigned int /* target */) 287 unsigned int /* target */)
288 288
289 // Tells the browser that no contexts are subscribed to the target anymore 289 // Tells the browser that no contexts are subscribed to the target anymore
290 // so the browser should stop sending the corresponding information 290 // so the browser should stop sending the corresponding information
291 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, 291 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription,
292 int32_t /* client_id */, 292 int32_t /* client_id */,
293 unsigned int /* target */) 293 unsigned int /* target */)
294 294
295 // Message from GPU to add a GPU log message to the about:gpu page. 295 // Message from GPU to add a GPU log message to the about:gpu page.
296 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 296 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
297 int /*severity*/, 297 int /*severity*/,
298 std::string /* header */, 298 std::string /* header */,
299 std::string /* message */) 299 std::string /* message */)
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_deferred_rendering_backing_strategy.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698