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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.h

Issue 1094113003: Allow out-of-process iframes to render to compositing surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 5 years, 8 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/browser/frame_host/cross_process_frame_connector.h
diff --git a/content/browser/frame_host/cross_process_frame_connector.h b/content/browser/frame_host/cross_process_frame_connector.h
index c52c9913d81885c2ea0d02b2348222985782ba9d..7ea41af779f925a536b7f1acd1f3a1e5fc140614 100644
--- a/content/browser/frame_host/cross_process_frame_connector.h
+++ b/content/browser/frame_host/cross_process_frame_connector.h
@@ -12,6 +12,11 @@ namespace blink {
class WebInputEvent;
}
+namespace cc {
+struct SurfaceId;
+struct SurfaceSequence;
+}
+
namespace IPC {
class Message;
}
@@ -76,10 +81,15 @@ class CrossProcessFrameConnector {
void RenderProcessGone();
- void ChildFrameCompositorFrameSwapped(uint32 output_surface_id,
- int host_id,
- int route_id,
- scoped_ptr<cc::CompositorFrame> frame);
+ virtual void ChildFrameCompositorFrameSwapped(
+ uint32 output_surface_id,
+ int host_id,
+ int route_id,
+ scoped_ptr<cc::CompositorFrame> frame);
+ virtual void SetChildFrameSurface(cc::SurfaceId& surface_id,
+ gfx::Size frame_size,
+ float scale_factor,
+ cc::SurfaceSequence& sequence);
gfx::Rect ChildFrameRect();
@@ -91,6 +101,9 @@ class CrossProcessFrameConnector {
const FrameHostMsg_ReclaimCompositorResources_Params& params);
void OnForwardInputEvent(const blink::WebInputEvent* event);
void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor);
+ void OnSatisfySequence(const cc::SurfaceSequence& sequence);
+ void OnRequireSequence(const cc::SurfaceId& id,
+ const cc::SurfaceSequence& sequence);
void SetDeviceScaleFactor(float scale_factor);
void SetSize(gfx::Rect frame_rect);

Powered by Google App Engine
This is Rietveld 408576698