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

Unified Diff: gpu/ipc/service/gpu_channel_manager.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 | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_manager.h
diff --git a/gpu/ipc/service/gpu_channel_manager.h b/gpu/ipc/service/gpu_channel_manager.h
index bdc2096ff0ce96578f556994123159deb8e647a9..8300fc75d334516afe12e0a6697add62a663507c 100644
--- a/gpu/ipc/service/gpu_channel_manager.h
+++ b/gpu/ipc/service/gpu_channel_manager.h
@@ -26,12 +26,6 @@
#include "ui/gl/gl_surface.h"
#include "url/gurl.h"
-#if defined(OS_MACOSX)
-#include "base/callback.h"
-#include "base/containers/hash_tables.h"
-#include "gpu/ipc/common/surface_handle.h"
-#endif
-
namespace base {
class WaitableEvent;
}
@@ -69,11 +63,6 @@ class GpuWatchdog;
// browser process to them based on the corresponding renderer ID.
class GPU_EXPORT GpuChannelManager {
public:
-#if defined(OS_MACOSX)
- typedef base::Callback<
- void(int32_t, const base::TimeTicks&, const base::TimeDelta&)>
- BufferPresentedCallback;
-#endif
GpuChannelManager(const GpuPreferences& gpu_preferences,
GpuChannelManagerDelegate* delegate,
GpuWatchdog* watchdog,
@@ -107,15 +96,6 @@ class GPU_EXPORT GpuChannelManager {
void LoseAllContexts();
void MaybeExitOnContextLost();
-#if defined(OS_MACOSX)
- void AddBufferPresentedCallback(int32_t routing_id,
- const BufferPresentedCallback& callback);
- void RemoveBufferPresentedCallback(int32_t routing_id);
- void BufferPresented(gpu::SurfaceHandle surface_handle,
- const base::TimeTicks& vsync_timebase,
- const base::TimeDelta& vsync_interval);
-#endif
-
const GpuPreferences& gpu_preferences() const {
return gpu_preferences_;
}
@@ -193,10 +173,6 @@ class GPU_EXPORT GpuChannelManager {
GpuDriverBugWorkarounds gpu_driver_bug_workarounds_;
GpuChannelManagerDelegate* const delegate_;
-#if defined(OS_MACOSX)
- base::hash_map<gpu::SurfaceHandle, BufferPresentedCallback>
- buffer_presented_callback_map_;
-#endif
GpuWatchdog* watchdog_;
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698