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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 1830193002: Move buffer_presented_params_mac to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/gpu/gpu_channel_manager.h ('k') | content/common/gpu/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index 97475a3351c44c75fea1c2664e2f188ac30bbe17..299fbe20ff413cfd4760fae80a07b509851f77f4 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -27,10 +27,6 @@
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_share_group.h"
-#if defined(OS_MACOSX)
-#include "content/common/gpu/buffer_presented_params_mac.h"
-#endif
-
namespace content {
namespace {
@@ -131,10 +127,12 @@ void GpuChannelManager::RemoveBufferPresentedCallback(int32_t surface_id) {
buffer_presented_callback_map_.erase(it);
}
-void GpuChannelManager::BufferPresented(const BufferPresentedParams& params) {
- auto it = buffer_presented_callback_map_.find(params.surface_id);
+void GpuChannelManager::BufferPresented(int32_t surface_id,
+ const base::TimeTicks& vsync_timebase,
+ const base::TimeDelta& vsync_interval) {
+ auto it = buffer_presented_callback_map_.find(surface_id);
if (it != buffer_presented_callback_map_.end())
- it->second.Run(params);
+ it->second.Run(surface_id, vsync_timebase, vsync_interval);
}
#endif
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | content/common/gpu/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698