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

Unified Diff: content/gpu/gpu_child_thread.cc

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/gpu/gpu_child_thread.h ('k') | gpu/gpu_ipc_client.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 0776d69d7ed4bb63cbaad95028876c0d83591eb3..fe38be71de7725e5928fd154df231e88329fb565 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -275,10 +275,6 @@ bool GpuChildThread::OnMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
-#if defined(OS_MACOSX)
- IPC_MESSAGE_HANDLER(AcceleratedSurfaceMsg_BufferPresented,
- OnBufferPresented)
-#endif
IPC_MESSAGE_HANDLER(GpuMsg_EstablishChannel, OnEstablishChannel)
IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel)
IPC_MESSAGE_HANDLER(GpuMsg_DestroyGpuMemoryBuffer, OnDestroyGpuMemoryBuffer)
@@ -323,31 +319,6 @@ void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) {
Send(new GpuHostMsg_GpuMemoryUmaStats(params));
}
-#if defined(OS_MACOSX)
-void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped(
- gpu::SurfaceHandle surface_handle,
- CAContextID ca_context_id,
- bool fullscreen_low_power_ca_context_valid,
- CAContextID fullscreen_low_power_ca_context_id,
- const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
- const gfx::Size& size,
- float scale_factor,
- std::vector<ui::LatencyInfo> latency_info) {
- AcceleratedSurfaceBuffersSwappedParams params;
- params.surface_handle = surface_handle;
- params.ca_context_id = ca_context_id;
- params.fullscreen_low_power_ca_context_valid =
- fullscreen_low_power_ca_context_valid;
- params.fullscreen_low_power_ca_context_id =
- fullscreen_low_power_ca_context_id;
- params.io_surface = io_surface;
- params.size = size;
- params.scale_factor = scale_factor;
- params.latency_info = std::move(latency_info);
- Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params));
-}
-#endif
-
#if defined(OS_WIN)
void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow(
gpu::SurfaceHandle parent_window,
@@ -528,15 +499,6 @@ void GpuChildThread::OnGpuSwitched() {
ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
}
-#if defined(OS_MACOSX)
-void GpuChildThread::OnBufferPresented(const BufferPresentedParams& params) {
- if (gpu_channel_manager_) {
- gpu_channel_manager_->BufferPresented(
- params.surface_handle, params.vsync_timebase, params.vsync_interval);
- }
-}
-#endif
-
void GpuChildThread::OnEstablishChannel(const EstablishChannelParams& params) {
if (!gpu_channel_manager_)
return;
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | gpu/gpu_ipc_client.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698