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

Unified Diff: gpu/ipc/service/gpu_channel_manager.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 | « gpu/ipc/service/gpu_channel_manager.h ('k') | gpu/ipc/service/gpu_channel_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_manager.cc
diff --git a/gpu/ipc/service/gpu_channel_manager.cc b/gpu/ipc/service/gpu_channel_manager.cc
index 826fd6b6389c128fe8ef8671cc19a447c2c00dab..9b6992476199f3869a524c87ae2e6c97392646c3 100644
--- a/gpu/ipc/service/gpu_channel_manager.cc
+++ b/gpu/ipc/service/gpu_channel_manager.cc
@@ -115,31 +115,6 @@ void GpuChannelManager::RemoveChannel(int client_id) {
gpu_channels_.erase(client_id);
}
-#if defined(OS_MACOSX)
-void GpuChannelManager::AddBufferPresentedCallback(
- gpu::SurfaceHandle surface_handle,
- const BufferPresentedCallback& callback) {
- DCHECK(buffer_presented_callback_map_.find(surface_handle) ==
- buffer_presented_callback_map_.end());
- buffer_presented_callback_map_[surface_handle] = callback;
-}
-
-void GpuChannelManager::RemoveBufferPresentedCallback(
- gpu::SurfaceHandle surface_handle) {
- auto it = buffer_presented_callback_map_.find(surface_handle);
- DCHECK(it != buffer_presented_callback_map_.end());
- buffer_presented_callback_map_.erase(it);
-}
-
-void GpuChannelManager::BufferPresented(gpu::SurfaceHandle surface_handle,
- const base::TimeTicks& vsync_timebase,
- const base::TimeDelta& vsync_interval) {
- auto it = buffer_presented_callback_map_.find(surface_handle);
- if (it != buffer_presented_callback_map_.end())
- it->second.Run(surface_handle, vsync_timebase, vsync_interval);
-}
-#endif
-
GpuChannel* GpuChannelManager::LookupChannel(int32_t client_id) const {
const auto& it = gpu_channels_.find(client_id);
return it != gpu_channels_.end() ? it->second : nullptr;
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.h ('k') | gpu/ipc/service/gpu_channel_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698