Index: content/browser/frame_host/render_widget_host_view_child_frame.h |
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.h b/content/browser/frame_host/render_widget_host_view_child_frame.h |
index 4c228e40934cf7fcab839841deb7130ef2e30b26..071e91dc2a4b47a744ad8fa893637a34387b1e24 100644 |
--- a/content/browser/frame_host/render_widget_host_view_child_frame.h |
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.h |
@@ -19,6 +19,7 @@ |
#include "cc/scheduler/begin_frame_source.h" |
#include "cc/surfaces/surface_factory_client.h" |
#include "cc/surfaces/surface_id_allocator.h" |
+#include "cc/surfaces/surface_sequence.h" |
#include "content/browser/compositor/image_transport_factory.h" |
#include "content/browser/renderer_host/event_with_latency_info.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
@@ -204,6 +205,12 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame |
explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); |
void Init(); |
+ virtual bool ShouldRecreateSurface(uint32_t compositor_frame_sink_id, |
+ const cc::CompositorFrame& frame); |
+ |
+ void ProcessCompositorFrame(uint32_t compositor_frame_sink_id, |
+ cc::CompositorFrame frame); |
+ |
// Clears current compositor surface, if one is in use. |
void ClearCompositorSurfaceIfNecessary(); |
@@ -240,6 +247,8 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame |
} |
private: |
+ virtual void SendSurfaceInfoToChild(const cc::SurfaceSequence& sequence); |
+ |
void SubmitSurfaceCopyRequest(const gfx::Rect& src_subrect, |
const gfx::Size& dst_size, |
const ReadbackRequestCallback& callback, |