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

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

Issue 2365583004: Mac: Clean up plumbing of accelerated widgets (Closed)
Patch Set: make_scoped_refptr Created 4 years, 3 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>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 IPC_STRUCT_MEMBER(uint32_t, internal_format) 70 IPC_STRUCT_MEMBER(uint32_t, internal_format)
71 IPC_STRUCT_MEMBER(uint64_t, image_release_count) 71 IPC_STRUCT_MEMBER(uint64_t, image_release_count)
72 IPC_STRUCT_END() 72 IPC_STRUCT_END()
73 73
74 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params) 74 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params)
75 #if defined(OS_MACOSX) 75 #if defined(OS_MACOSX)
76 // Mac-specific parameters used to present CALayers hosted in the GPU process. 76 // Mac-specific parameters used to present CALayers hosted in the GPU process.
77 // TODO(ccameron): Remove these parameters once the CALayer tree is hosted in 77 // TODO(ccameron): Remove these parameters once the CALayer tree is hosted in
78 // the browser process. 78 // the browser process.
79 // https://crbug.com/604052 79 // https://crbug.com/604052
80 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle)
81 // Only one of ca_context_id or io_surface may be non-0. 80 // Only one of ca_context_id or io_surface may be non-0.
82 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) 81 IPC_STRUCT_MEMBER(CAContextID, ca_context_id)
83 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid) 82 IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid)
84 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id) 83 IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id)
85 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface) 84 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface)
86 IPC_STRUCT_MEMBER(gfx::Size, pixel_size) 85 IPC_STRUCT_MEMBER(gfx::Size, pixel_size)
87 IPC_STRUCT_MEMBER(float, scale_factor) 86 IPC_STRUCT_MEMBER(float, scale_factor)
88 IPC_STRUCT_MEMBER(gpu::TextureInUseResponses, in_use_responses) 87 IPC_STRUCT_MEMBER(gpu::TextureInUseResponses, in_use_responses)
89 #endif 88 #endif
90 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 89 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 GpuCommandBufferMsg_CreateImage_Params /* params */) 239 GpuCommandBufferMsg_CreateImage_Params /* params */)
241 240
242 // Destroy a previously created image. 241 // Destroy a previously created image.
243 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 242 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
244 243
245 // Attaches an external image stream to the client texture. 244 // Attaches an external image stream to the client texture.
246 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 245 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
247 uint32_t, /* client_texture_id */ 246 uint32_t, /* client_texture_id */
248 int32_t, /* stream_id */ 247 int32_t, /* stream_id */
249 bool /* succeeded */) 248 bool /* succeeded */)
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h ('k') | gpu/ipc/service/image_transport_surface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698