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

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

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/buffer_presented_params_mac.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index b4a635e3dee5a8c66b0a7197f6109b88aa7bacdd..875656f47b697e82be97ce436e0e9609a6c3198b 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -62,9 +62,6 @@ class GpuChannel;
class GpuChannelManagerDelegate;
class GpuMemoryBufferFactory;
class GpuWatchdog;
-#if defined(OS_MACOSX)
-struct BufferPresentedParams;
-#endif
// A GpuChannelManager is a thread responsible for issuing rendering commands
// managing the lifetimes of GPU channels and forwarding IPC requests from the
@@ -72,7 +69,8 @@ struct BufferPresentedParams;
class CONTENT_EXPORT GpuChannelManager {
public:
#if defined(OS_MACOSX)
- typedef base::Callback<void(const BufferPresentedParams&)>
+ typedef base::Callback<
+ void(int32_t, const base::TimeTicks&, const base::TimeDelta&)>
BufferPresentedCallback;
#endif
GpuChannelManager(const gpu::GpuPreferences& gpu_preferences,
@@ -114,7 +112,9 @@ class CONTENT_EXPORT GpuChannelManager {
void AddBufferPresentedCallback(int32_t routing_id,
const BufferPresentedCallback& callback);
void RemoveBufferPresentedCallback(int32_t routing_id);
- void BufferPresented(const BufferPresentedParams& params);
+ void BufferPresented(int32_t surface_id,
+ const base::TimeTicks& vsync_timebase,
+ const base::TimeDelta& vsync_interval);
#endif
const gpu::GpuPreferences& gpu_preferences() const {
« no previous file with comments | « content/common/gpu/buffer_presented_params_mac.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698