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

Unified Diff: content/common/gpu_host_messages.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/buffer_presented_params_mac.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu_host_messages.h
diff --git a/content/common/gpu_host_messages.h b/content/common/gpu_host_messages.h
index 8f54129e4f84552e4b5f5eb244084f44258fde74..61e2613497ec4e8a646457bce30b25f3f9ea9b93 100644
--- a/content/common/gpu_host_messages.h
+++ b/content/common/gpu_host_messages.h
@@ -26,13 +26,6 @@
#include "url/gurl.h"
#include "url/ipc/url_param_traits.h"
-#if defined(OS_MACOSX)
-#include "content/common/accelerated_surface_buffers_swapped_params_mac.h"
-#include "content/common/buffer_presented_params_mac.h"
-#include "ui/base/cocoa/remote_layer_api.h"
-#include "ui/gfx/mac/io_surface.h"
-#endif
-
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
@@ -79,27 +72,6 @@ IPC_STRUCT_TRAITS_BEGIN(content::EstablishChannelParams)
IPC_STRUCT_TRAITS_MEMBER(allow_real_time_streams)
IPC_STRUCT_TRAITS_END()
-#if defined(OS_MACOSX)
-IPC_STRUCT_TRAITS_BEGIN(content::AcceleratedSurfaceBuffersSwappedParams)
- IPC_STRUCT_TRAITS_MEMBER(surface_handle)
- // Only one of ca_context_id or io_surface may be non-0.
- IPC_STRUCT_TRAITS_MEMBER(ca_context_id)
- IPC_STRUCT_TRAITS_MEMBER(fullscreen_low_power_ca_context_valid)
- IPC_STRUCT_TRAITS_MEMBER(fullscreen_low_power_ca_context_id)
- IPC_STRUCT_TRAITS_MEMBER(io_surface)
- IPC_STRUCT_TRAITS_MEMBER(size)
- IPC_STRUCT_TRAITS_MEMBER(scale_factor)
- IPC_STRUCT_TRAITS_MEMBER(latency_info)
-IPC_STRUCT_TRAITS_END()
-
-IPC_STRUCT_TRAITS_BEGIN(content::BufferPresentedParams)
- // The vsync parameters, to synchronize presentation with the display.
- IPC_STRUCT_TRAITS_MEMBER(surface_handle)
- IPC_STRUCT_TRAITS_MEMBER(vsync_timebase)
- IPC_STRUCT_TRAITS_MEMBER(vsync_interval)
-IPC_STRUCT_TRAITS_END()
-#endif
-
IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences)
IPC_STRUCT_TRAITS_MEMBER(single_process)
IPC_STRUCT_TRAITS_MEMBER(in_process_gpu)
@@ -187,13 +159,6 @@ IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo)
// Tells the GPU process to report video_memory information for the task manager
IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats)
-#if defined(OS_MACOSX)
-// Tells the GPU process that the browser process has handled the swap
-// buffers or post sub-buffer request.
-IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented,
- content::BufferPresentedParams)
-#endif
-
#if defined(OS_ANDROID)
// Tells the GPU process to wake up the GPU because we're about to draw.
IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
@@ -254,12 +219,6 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats,
gpu::VideoMemoryUsageStats /* GPU memory stats */)
-#if defined(OS_MACOSX)
-// Tells the browser that an accelerated surface has swapped.
-IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
- content::AcceleratedSurfaceBuffersSwappedParams)
-#endif
-
#if defined(OS_WIN)
IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow,
gpu::SurfaceHandle /* parent_window */,
« no previous file with comments | « content/common/buffer_presented_params_mac.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698