| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
| 17 #include "content/common/gpu/gpu_memory_uma_stats.h" | |
| 18 #include "content/common/gpu/gpu_process_launch_causes.h" | |
| 19 #include "content/common/gpu/gpu_stream_priority.h" | 17 #include "content/common/gpu/gpu_stream_priority.h" |
| 20 #include "content/public/common/common_param_traits.h" | 18 #include "content/public/common/common_param_traits.h" |
| 21 #include "content/public/common/gpu_memory_stats.h" | |
| 22 #include "gpu/command_buffer/common/capabilities.h" | 19 #include "gpu/command_buffer/common/capabilities.h" |
| 23 #include "gpu/command_buffer/common/command_buffer.h" | 20 #include "gpu/command_buffer/common/command_buffer.h" |
| 24 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
| 25 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 26 #include "gpu/command_buffer/common/mailbox.h" | 23 #include "gpu/command_buffer/common/mailbox.h" |
| 27 #include "gpu/command_buffer/common/sync_token.h" | 24 #include "gpu/command_buffer/common/sync_token.h" |
| 28 #include "gpu/command_buffer/common/value_state.h" | 25 #include "gpu/command_buffer/common/value_state.h" |
| 29 #include "gpu/config/gpu_info.h" | 26 #include "gpu/config/gpu_info.h" |
| 30 #include "gpu/ipc/gpu_command_buffer_traits.h" | 27 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 31 #include "ipc/ipc_channel_handle.h" | 28 #include "ipc/ipc_channel_handle.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 #elif defined(OS_MACOSX) | 45 #elif defined(OS_MACOSX) |
| 49 #include "ui/base/cocoa/remote_layer_api.h" | 46 #include "ui/base/cocoa/remote_layer_api.h" |
| 50 #include "ui/gfx/mac/io_surface.h" | 47 #include "ui/gfx/mac/io_surface.h" |
| 51 #endif | 48 #endif |
| 52 | 49 |
| 53 #undef IPC_MESSAGE_EXPORT | 50 #undef IPC_MESSAGE_EXPORT |
| 54 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 55 | 52 |
| 56 #define IPC_MESSAGE_START GpuMsgStart | 53 #define IPC_MESSAGE_START GpuMsgStart |
| 57 | 54 |
| 58 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, | |
| 59 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) | |
| 60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, | 55 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, |
| 61 gfx::GpuPreferenceLast) | 56 gfx::GpuPreferenceLast) |
| 62 IPC_ENUM_TRAITS_MAX_VALUE(content::GpuStreamPriority, | 57 IPC_ENUM_TRAITS_MAX_VALUE(content::GpuStreamPriority, |
| 63 content::GpuStreamPriority::LAST) | 58 content::GpuStreamPriority::LAST) |
| 64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType, | 59 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType, |
| 65 gfx::SURFACE_TYPE_LAST) | 60 gfx::SURFACE_TYPE_LAST) |
| 66 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SwapResult::SWAP_RESULT_LAST) | 61 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SwapResult::SWAP_RESULT_LAST) |
| 67 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, | 62 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, |
| 68 gpu::MemoryAllocation::CUTOFF_LAST) | 63 gpu::MemoryAllocation::CUTOFF_LAST) |
| 69 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, | 64 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 84 | 79 |
| 85 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) | 80 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) |
| 86 IPC_STRUCT_MEMBER(int32_t, share_group_id) | 81 IPC_STRUCT_MEMBER(int32_t, share_group_id) |
| 87 IPC_STRUCT_MEMBER(int32_t, stream_id) | 82 IPC_STRUCT_MEMBER(int32_t, stream_id) |
| 88 IPC_STRUCT_MEMBER(content::GpuStreamPriority, stream_priority) | 83 IPC_STRUCT_MEMBER(content::GpuStreamPriority, stream_priority) |
| 89 IPC_STRUCT_MEMBER(std::vector<int>, attribs) | 84 IPC_STRUCT_MEMBER(std::vector<int>, attribs) |
| 90 IPC_STRUCT_MEMBER(GURL, active_url) | 85 IPC_STRUCT_MEMBER(GURL, active_url) |
| 91 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) | 86 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) |
| 92 IPC_STRUCT_END() | 87 IPC_STRUCT_END() |
| 93 | 88 |
| 94 IPC_STRUCT_BEGIN(GpuMsg_EstablishChannel_Params) | |
| 95 IPC_STRUCT_MEMBER(int, client_id) | |
| 96 IPC_STRUCT_MEMBER(uint64_t, client_tracing_id) | |
| 97 IPC_STRUCT_MEMBER(bool, preempts) | |
| 98 IPC_STRUCT_MEMBER(bool, allow_view_command_buffers) | |
| 99 IPC_STRUCT_MEMBER(bool, allow_real_time_streams) | |
| 100 IPC_STRUCT_END() | |
| 101 | |
| 102 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | |
| 103 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | |
| 104 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 105 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | |
| 106 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | |
| 107 IPC_STRUCT_MEMBER(int32_t, client_id) | |
| 108 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle) | |
| 109 IPC_STRUCT_END() | |
| 110 | |
| 111 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBufferFromHandle_Params) | |
| 112 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle) | |
| 113 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | |
| 114 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 115 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | |
| 116 IPC_STRUCT_MEMBER(int32_t, client_id) | |
| 117 IPC_STRUCT_END() | |
| 118 | |
| 119 #if defined(OS_MACOSX) | 89 #if defined(OS_MACOSX) |
| 120 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 90 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 121 IPC_STRUCT_MEMBER(int32_t, surface_id) | 91 IPC_STRUCT_MEMBER(int32_t, surface_id) |
| 122 // Only one of ca_context_id or io_surface may be non-0. | 92 // Only one of ca_context_id or io_surface may be non-0. |
| 123 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) | 93 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) |
| 124 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface) | 94 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface) |
| 125 IPC_STRUCT_MEMBER(int32_t, route_id) | 95 IPC_STRUCT_MEMBER(int32_t, route_id) |
| 126 IPC_STRUCT_MEMBER(gfx::Size, size) | 96 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 127 IPC_STRUCT_MEMBER(float, scale_factor) | 97 IPC_STRUCT_MEMBER(float, scale_factor) |
| 128 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 98 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 IPC_STRUCT_TRAITS_MEMBER(context_info_state) | 248 IPC_STRUCT_TRAITS_MEMBER(context_info_state) |
| 279 #if defined(OS_WIN) | 249 #if defined(OS_WIN) |
| 280 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) | 250 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) |
| 281 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) | 251 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) |
| 282 #endif | 252 #endif |
| 283 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) | 253 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) |
| 284 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) | 254 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) |
| 285 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) | 255 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) |
| 286 IPC_STRUCT_TRAITS_END() | 256 IPC_STRUCT_TRAITS_END() |
| 287 | 257 |
| 288 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats) | |
| 289 IPC_STRUCT_TRAITS_MEMBER(video_memory) | |
| 290 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) | |
| 291 IPC_STRUCT_TRAITS_END() | |
| 292 | |
| 293 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats) | |
| 294 IPC_STRUCT_TRAITS_MEMBER(process_map) | |
| 295 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | |
| 296 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_historical_max) | |
| 297 IPC_STRUCT_TRAITS_END() | |
| 298 | |
| 299 IPC_STRUCT_TRAITS_BEGIN(content::GPUMemoryUmaStats) | |
| 300 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) | |
| 301 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) | |
| 302 IPC_STRUCT_TRAITS_END() | |
| 303 | |
| 304 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) | 258 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) |
| 305 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 259 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
| 306 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) | 260 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) |
| 307 IPC_STRUCT_TRAITS_END() | 261 IPC_STRUCT_TRAITS_END() |
| 308 | 262 |
| 309 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 263 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
| 310 IPC_STRUCT_TRAITS_MEMBER(handle) | 264 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 311 IPC_STRUCT_TRAITS_MEMBER(transport_type) | 265 IPC_STRUCT_TRAITS_MEMBER(transport_type) |
| 312 IPC_STRUCT_TRAITS_END() | 266 IPC_STRUCT_TRAITS_END() |
| 313 | 267 |
| 314 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) | 268 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) |
| 315 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) | 269 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) |
| 316 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) | 270 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) |
| 317 IPC_STRUCT_TRAITS_END() | 271 IPC_STRUCT_TRAITS_END() |
| 318 | 272 |
| 319 //------------------------------------------------------------------------------ | |
| 320 // GPU Messages | |
| 321 // These are messages from the browser to the GPU process. | |
| 322 | 273 |
| 323 // Tells the GPU process to initialize itself. The browser explicitly | |
| 324 // requests this be done so that we are guaranteed that the channel is set | |
| 325 // up between the browser and GPU process before doing any work that might | |
| 326 // potentially crash the GPU process. Detection of the child process | |
| 327 // exiting abruptly is predicated on having the IPC channel set up. | |
| 328 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) | |
| 329 | |
| 330 // Tells the GPU process to shutdown itself. | |
| 331 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) | |
| 332 | |
| 333 // Tells the GPU process to create a new channel for communication with a | |
| 334 // given client. The channel name is returned in a | |
| 335 // GpuHostMsg_ChannelEstablished message. The client ID is passed so that | |
| 336 // the GPU process reuses an existing channel to that process if it exists. | |
| 337 // This ID is a unique opaque identifier generated by the browser process. | |
| 338 // The client_tracing_id is a unique ID used for the purposes of tracing. | |
| 339 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | |
| 340 GpuMsg_EstablishChannel_Params /* params */) | |
| 341 | |
| 342 // Tells the GPU process to close the channel identified by IPC channel | |
| 343 // handle. If no channel can be identified, do nothing. | |
| 344 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, | |
| 345 IPC::ChannelHandle /* channel_handle */) | |
| 346 | |
| 347 // Tells the GPU process to create a new gpu memory buffer. | |
| 348 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | |
| 349 GpuMsg_CreateGpuMemoryBuffer_Params) | |
| 350 | |
| 351 // Tells the GPU process to create a new gpu memory buffer from an existing | |
| 352 // handle. | |
| 353 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle, | |
| 354 GpuMsg_CreateGpuMemoryBufferFromHandle_Params) | |
| 355 | |
| 356 // Tells the GPU process to destroy buffer. | |
| 357 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | |
| 358 gfx::GpuMemoryBufferId, /* id */ | |
| 359 int32_t, /* client_id */ | |
| 360 gpu::SyncToken /* sync_token */) | |
| 361 | |
| 362 // Tells the GPU process to create a context for collecting graphics card | |
| 363 // information. | |
| 364 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | |
| 365 | |
| 366 // Tells the GPU process to report video_memory information for the task manager | |
| 367 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | |
| 368 | |
| 369 #if defined(OS_MACOSX) | |
| 370 // Tells the GPU process that the browser process has handled the swap | |
| 371 // buffers or post sub-buffer request. | |
| 372 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, | |
| 373 AcceleratedSurfaceMsg_BufferPresented_Params) | |
| 374 #endif | |
| 375 | |
| 376 #if defined(OS_ANDROID) | |
| 377 // Tells the GPU process to wake up the GPU because we're about to draw. | |
| 378 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) | |
| 379 #endif | |
| 380 | |
| 381 // Tells the GPU process to remove all contexts. | |
| 382 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | |
| 383 | |
| 384 // Tells the GPU process to crash. | |
| 385 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | |
| 386 | |
| 387 // Tells the GPU process to hang. | |
| 388 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | |
| 389 | |
| 390 // Tells the GPU process to disable the watchdog thread. | |
| 391 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | |
| 392 | |
| 393 // Tells the GPU process that the browser has seen a GPU switch. | |
| 394 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | |
| 395 | |
| 396 // Sends an input event to the gpu service. | |
| 397 IPC_MESSAGE_CONTROL3(GpuMsg_UpdateValueState, | |
| 398 int, /* client_id */ | |
| 399 unsigned int, /* target */ | |
| 400 gpu::ValueState /* valuestate */) | |
| 401 | |
| 402 //------------------------------------------------------------------------------ | |
| 403 // GPU Host Messages | |
| 404 // These are messages to the browser. | |
| 405 | |
| 406 // A renderer sends this when it wants to create a connection to the GPU | |
| 407 // process. The browser will create the GPU process if necessary, and will | |
| 408 // return a handle to the channel via a GpuChannelEstablished message. | |
| 409 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | |
| 410 content::CauseForGpuLaunch, | |
| 411 int /* client id */, | |
| 412 IPC::ChannelHandle /* handle to channel */, | |
| 413 gpu::GPUInfo /* stats about GPU process*/) | |
| 414 | |
| 415 // A renderer sends this when it wants to know whether a gpu process exists. | |
| 416 IPC_SYNC_MESSAGE_CONTROL0_1(GpuHostMsg_HasGpuProcess, bool /* result */) | |
| 417 | |
| 418 // Response from GPU to a GputMsg_Initialize message. | |
| 419 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, | |
| 420 bool /* result */, | |
| 421 ::gpu::GPUInfo /* gpu_info */) | |
| 422 | |
| 423 // Response from GPU to a GpuHostMsg_EstablishChannel message. | |
| 424 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | |
| 425 IPC::ChannelHandle /* channel_handle */) | |
| 426 | |
| 427 // Message from GPU to notify to destroy the channel. | |
| 428 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyChannel, int32_t /* client_id */) | |
| 429 | |
| 430 // Message to cache the given shader information. | |
| 431 IPC_MESSAGE_CONTROL3(GpuHostMsg_CacheShader, | |
| 432 int32_t /* client_id */, | |
| 433 std::string /* key */, | |
| 434 std::string /* shader */) | |
| 435 | |
| 436 // Message to the GPU that a shader was loaded from disk. | |
| 437 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, | |
| 438 std::string /* encoded shader */) | |
| 439 | |
| 440 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | |
| 441 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | |
| 442 gfx::GpuMemoryBufferHandle /* handle */) | |
| 443 | |
| 444 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | |
| 445 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | |
| 446 gpu::GPUInfo /* GPU logging stats */) | |
| 447 | |
| 448 // Response from GPU to a GpuMsg_GetVideoMemory. | |
| 449 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | |
| 450 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | |
| 451 | |
| 452 // Message from GPU to add a GPU log message to the about:gpu page. | |
| 453 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | |
| 454 int /*severity*/, | |
| 455 std::string /* header */, | |
| 456 std::string /* message */) | |
| 457 | |
| 458 | |
| 459 #if defined(OS_MACOSX) | |
| 460 // Tells the browser that an accelerated surface has swapped. | |
| 461 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | |
| 462 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | |
| 463 #endif | |
| 464 | |
| 465 #if defined(OS_WIN) | |
| 466 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow, | |
| 467 gfx::PluginWindowHandle /* parent_window */, | |
| 468 gfx::PluginWindowHandle /* child_window */) | |
| 469 #endif | |
| 470 | |
| 471 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, | |
| 472 GURL /* url */) | |
| 473 | |
| 474 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, | |
| 475 bool /* offscreen */, | |
| 476 gpu::error::ContextLostReason /* reason */, | |
| 477 GURL /* url */) | |
| 478 | |
| 479 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, | |
| 480 GURL /* url */) | |
| 481 | |
| 482 // Tells the browser about GPU memory usage statistics for UMA logging. | |
| 483 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, | |
| 484 content::GPUMemoryUmaStats /* GPU memory UMA stats */) | |
| 485 | |
| 486 // Tells the browser that a context has subscribed to a new target and | |
| 487 // the browser should start sending the corresponding information | |
| 488 IPC_MESSAGE_CONTROL2(GpuHostMsg_AddSubscription, | |
| 489 int32_t /* client_id */, | |
| 490 unsigned int /* target */) | |
| 491 | |
| 492 // Tells the browser that no contexts are subscribed to the target anymore | |
| 493 // so the browser should stop sending the corresponding information | |
| 494 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, | |
| 495 int32_t /* client_id */, | |
| 496 unsigned int /* target */) | |
| 497 | 274 |
| 498 //------------------------------------------------------------------------------ | 275 //------------------------------------------------------------------------------ |
| 499 // GPU Channel Messages | 276 // GPU Channel Messages |
| 500 // These are messages from a renderer process to the GPU process. | 277 // These are messages from a renderer process to the GPU process. |
| 501 | 278 |
| 502 // Tells the GPU process to create a new command buffer that renders directly | 279 // Tells the GPU process to create a new command buffer that renders directly |
| 503 // to a native view. A corresponding GpuCommandBufferStub is created. | 280 // to a native view. A corresponding GpuCommandBufferStub is created. |
| 504 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateViewCommandBuffer, | 281 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateViewCommandBuffer, |
| 505 gfx::GLSurfaceHandle, /* compositing_surface */ | 282 gfx::GLSurfaceHandle, /* compositing_surface */ |
| 506 GPUCreateCommandBufferConfig, /* init_params */ | 283 GPUCreateCommandBufferConfig, /* init_params */ |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 600 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
| 824 | 601 |
| 825 //------------------------------------------------------------------------------ | 602 //------------------------------------------------------------------------------ |
| 826 // Accelerated JPEG Decoder Host Messages | 603 // Accelerated JPEG Decoder Host Messages |
| 827 // These messages are sent from the GPU process to Browser process. | 604 // These messages are sent from the GPU process to Browser process. |
| 828 // | 605 // |
| 829 // Report decode status. | 606 // Report decode status. |
| 830 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 607 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
| 831 int32_t, /* bitstream_buffer_id */ | 608 int32_t, /* bitstream_buffer_id */ |
| 832 media::JpegDecodeAccelerator::Error /* error */) | 609 media::JpegDecodeAccelerator::Error /* error */) |
| OLD | NEW |