Index: content/public/renderer/content_renderer_client.h |
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h |
index 32c5092d952de3ad74412b9952d357bb7db69aec..63e654273416713f055af89a1d30269ef6b0516f 100644 |
--- a/content/public/renderer/content_renderer_client.h |
+++ b/content/public/renderer/content_renderer_client.h |
@@ -58,6 +58,8 @@ struct WebURLError; |
namespace cc { |
class ImageSerializationProcessor; |
+class RemoteCompositorBridge; |
+class RemoteProtoChannel; |
} |
namespace gfx { |
@@ -276,6 +278,14 @@ class CONTENT_EXPORT ContentRendererClient { |
// Allows an embedder to provide a cc::ImageSerializationProcessor. |
virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor(); |
+ // Allows an embedder to create the cc::RemoteCompositorBridge when using |
+ // remote compositing. |
+ // The |remote_proto_channel| outlives the RemoteCompositorBridge. |
+ virtual std::unique_ptr<cc::RemoteCompositorBridge> |
+ CreateRemoteCompositorBridge( |
+ cc::RemoteProtoChannel* remote_proto_channel, |
+ scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner); |
+ |
// Allows an embedder to provide a default image decode color space. |
virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); |