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

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

Issue 1830513003: Move AcceleratedSurfaceBuffersSwappedParams to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed piman's comment 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
Index: content/common/gpu/gpu_channel_manager_delegate.h
diff --git a/content/common/gpu/gpu_channel_manager_delegate.h b/content/common/gpu/gpu_channel_manager_delegate.h
index 3b6254089da58210ec8511db5eeda2bdad3cc150..00b3fe6a4606f0a5c4ee29650cf43a137b89ba56 100644
--- a/content/common/gpu/gpu_channel_manager_delegate.h
+++ b/content/common/gpu/gpu_channel_manager_delegate.h
@@ -8,6 +8,12 @@
#include "gpu/command_buffer/common/constants.h"
#include "gpu/ipc/common/surface_handle.h"
+#if defined(OS_MACOSX)
+#include "ui/base/cocoa/remote_layer_api.h"
+#include "ui/events/latency_info.h"
+#include "ui/gfx/mac/io_surface.h"
+#endif
+
class GURL;
namespace IPC {
@@ -20,13 +26,8 @@ struct GPUMemoryUmaStats;
namespace content {
-struct AcceleratedSurfaceBuffersSwappedParams;
-
class GpuChannelManagerDelegate {
public:
- // Sets the currently active URL. Use GURL() to clear the URL.
- virtual void SetActiveURL(const GURL& url) = 0;
-
// Tells the delegate that a context has subscribed to a new target and
// the browser should start sending the corresponding information
virtual void AddSubscription(int32_t client_id, unsigned int target) = 0;
@@ -64,7 +65,12 @@ class GpuChannelManagerDelegate {
#if defined(OS_MACOSX)
// Tells the delegate that an accelerated surface has swapped.
virtual void SendAcceleratedSurfaceBuffersSwapped(
- const AcceleratedSurfaceBuffersSwappedParams& params) = 0;
+ int32_t surface_id,
+ CAContextID ca_context_id,
+ const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
+ const gfx::Size& size,
+ float scale_factor,
+ std::vector<ui::LatencyInfo> latency_info) = 0;
#endif
#if defined(OS_WIN)
@@ -73,6 +79,9 @@ class GpuChannelManagerDelegate {
gpu::SurfaceHandle child_window) = 0;
#endif
+ // Sets the currently active URL. Use GURL() to clear the URL.
+ virtual void SetActiveURL(const GURL& url) = 0;
+
protected:
virtual ~GpuChannelManagerDelegate() {}
};
« no previous file with comments | « content/common/gpu/accelerated_surface_buffers_swapped_params_mac.cc ('k') | content/common/gpu/gpu_channel_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698