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

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

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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 28 matching lines...) Expand all
39 #include "ui/events/latency_info.h" 39 #include "ui/events/latency_info.h"
40 #include "ui/gfx/geometry/size.h" 40 #include "ui/gfx/geometry/size.h"
41 #include "ui/gfx/gpu_memory_buffer.h" 41 #include "ui/gfx/gpu_memory_buffer.h"
42 #include "ui/gfx/ipc/gfx_param_traits.h" 42 #include "ui/gfx/ipc/gfx_param_traits.h"
43 #include "ui/gfx/native_widget_types.h" 43 #include "ui/gfx/native_widget_types.h"
44 #include "ui/gfx/swap_result.h" 44 #include "ui/gfx/swap_result.h"
45 #include "ui/gl/gpu_preference.h" 45 #include "ui/gl/gpu_preference.h"
46 46
47 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
48 #include "content/common/android/surface_texture_peer.h" 48 #include "content/common/android/surface_texture_peer.h"
49 #elif defined(OS_MACOSX)
50 #include "ui/base/cocoa/remote_layer_api.h"
51 #include "ui/gfx/mac/io_surface.h"
49 #endif 52 #endif
50 53
51 #undef IPC_MESSAGE_EXPORT 54 #undef IPC_MESSAGE_EXPORT
52 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 55 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
53 56
54 #define IPC_MESSAGE_START GpuMsgStart 57 #define IPC_MESSAGE_START GpuMsgStart
55 58
56 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, 59 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch,
57 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) 60 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1)
58 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, 61 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle) 116 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle)
114 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) 117 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id)
115 IPC_STRUCT_MEMBER(gfx::Size, size) 118 IPC_STRUCT_MEMBER(gfx::Size, size)
116 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) 119 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
117 IPC_STRUCT_MEMBER(int32_t, client_id) 120 IPC_STRUCT_MEMBER(int32_t, client_id)
118 IPC_STRUCT_END() 121 IPC_STRUCT_END()
119 122
120 #if defined(OS_MACOSX) 123 #if defined(OS_MACOSX)
121 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 124 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
122 IPC_STRUCT_MEMBER(int32_t, surface_id) 125 IPC_STRUCT_MEMBER(int32_t, surface_id)
123 IPC_STRUCT_MEMBER(uint64_t, surface_handle) 126 // Only one of ca_context_id or io_surface may be non-0.
127 IPC_STRUCT_MEMBER(CAContextID, ca_context_id)
128 IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface)
124 IPC_STRUCT_MEMBER(int32_t, route_id) 129 IPC_STRUCT_MEMBER(int32_t, route_id)
125 IPC_STRUCT_MEMBER(gfx::Size, size) 130 IPC_STRUCT_MEMBER(gfx::Size, size)
126 IPC_STRUCT_MEMBER(float, scale_factor) 131 IPC_STRUCT_MEMBER(float, scale_factor)
127 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 132 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
128 IPC_STRUCT_END() 133 IPC_STRUCT_END()
129 134
130 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) 135 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params)
131 // The vsync parameters, to synchronize presentation with the display. 136 // The vsync parameters, to synchronize presentation with the display.
132 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase) 137 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase)
133 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval) 138 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval)
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 840 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
836 841
837 //------------------------------------------------------------------------------ 842 //------------------------------------------------------------------------------
838 // Accelerated JPEG Decoder Host Messages 843 // Accelerated JPEG Decoder Host Messages
839 // These messages are sent from the GPU process to Browser process. 844 // These messages are sent from the GPU process to Browser process.
840 // 845 //
841 // Report decode status. 846 // Report decode status.
842 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 847 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
843 int32_t, /* bitstream_buffer_id */ 848 int32_t, /* bitstream_buffer_id */
844 media::JpegDecodeAccelerator::Error /* error */) 849 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_io_surface.cc ('k') | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698