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

Side by Side Diff: gpu/ipc/common/gpu_messages.h

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 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 (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 "gpu/command_buffer/common/capabilities.h" 15 #include "gpu/command_buffer/common/capabilities.h"
16 #include "gpu/command_buffer/common/command_buffer.h" 16 #include "gpu/command_buffer/common/command_buffer.h"
17 #include "gpu/command_buffer/common/constants.h" 17 #include "gpu/command_buffer/common/constants.h"
18 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 18 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
19 #include "gpu/command_buffer/common/mailbox.h" 19 #include "gpu/command_buffer/common/mailbox.h"
20 #include "gpu/command_buffer/common/sync_token.h" 20 #include "gpu/command_buffer/common/sync_token.h"
21 #include "gpu/command_buffer/common/texture_in_use_response.h"
21 #include "gpu/config/gpu_info.h" 22 #include "gpu/config/gpu_info.h"
22 #include "gpu/gpu_export.h" 23 #include "gpu/gpu_export.h"
23 #include "gpu/ipc/common/gpu_command_buffer_traits.h" 24 #include "gpu/ipc/common/gpu_command_buffer_traits.h"
24 #include "gpu/ipc/common/gpu_param_traits.h" 25 #include "gpu/ipc/common/gpu_param_traits.h"
25 #include "gpu/ipc/common/surface_handle.h" 26 #include "gpu/ipc/common/surface_handle.h"
26 #include "ipc/ipc_channel_handle.h" 27 #include "ipc/ipc_channel_handle.h"
27 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
28 #include "ui/events/ipc/latency_info_param_traits.h" 29 #include "ui/events/ipc/latency_info_param_traits.h"
29 #include "ui/events/latency_info.h" 30 #include "ui/events/latency_info.h"
30 #include "ui/gfx/geometry/size.h" 31 #include "ui/gfx/geometry/size.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // the browser process. 80 // the browser process.
80 // https://crbug.com/604052 81 // https://crbug.com/604052
81 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) 82 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle)
82 // Only one of ca_context_id or io_surface may be non-0. 83 // Only one of ca_context_id or io_surface may be non-0.
83 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) 84 IPC_STRUCT_MEMBER(CAContextID, ca_context_id)
84 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid) 85 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid)
85 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id) 86 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id)
86 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface) 87 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface)
87 IPC_STRUCT_MEMBER(gfx::Size, pixel_size) 88 IPC_STRUCT_MEMBER(gfx::Size, pixel_size)
88 IPC_STRUCT_MEMBER(float, scale_factor) 89 IPC_STRUCT_MEMBER(float, scale_factor)
90 IPC_STRUCT_MEMBER(gpu::TextureInUseResponses, in_use_responses)
89 #endif 91 #endif
90 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 92 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
91 IPC_STRUCT_MEMBER(gfx::SwapResult, result) 93 IPC_STRUCT_MEMBER(gfx::SwapResult, result)
92 IPC_STRUCT_END() 94 IPC_STRUCT_END()
93 95
94 //------------------------------------------------------------------------------ 96 //------------------------------------------------------------------------------
95 // GPU Channel Messages 97 // GPU Channel Messages
96 // These are messages from a renderer process to the GPU process. 98 // These are messages from a renderer process to the GPU process.
97 99
98 // Tells the GPU process to create a new command buffer. A corresponding 100 // Tells the GPU process to create a new command buffer. A corresponding
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 GpuCommandBufferMsg_CreateImage_Params /* params */) 242 GpuCommandBufferMsg_CreateImage_Params /* params */)
241 243
242 // Destroy a previously created image. 244 // Destroy a previously created image.
243 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 245 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
244 246
245 // Attaches an external image stream to the client texture. 247 // Attaches an external image stream to the client texture.
246 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 248 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
247 uint32_t, /* client_texture_id */ 249 uint32_t, /* client_texture_id */
248 int32_t, /* stream_id */ 250 int32_t, /* stream_id */
249 bool /* succeeded */) 251 bool /* succeeded */)
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_command_buffer_traits.cc ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698