Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index 2089b3c1a7b5faf58784fc7d7eed6f215e34170a..5948bc13cfc9481d00e61f72b7fd8b3168f9ff40 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -180,12 +180,15 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// Indicates if the page has finished loading. |
void SetIsLoading(bool is_loading); |
- // Get access to the widget's backing store. If a resize is in progress, |
- // then the current size of the backing store may be less than the size of |
- // the widget's view. If you pass |force_create| as true, then the backing |
- // store will be created if it doesn't exist. Otherwise, NULL will be returned |
- // if the backing store doesn't already exist. It will also return NULL if the |
+ // Get access to the widget's backing store matching the size of the widget's |
+ // view. If you pass |force_create| as true, then GetBackingStore may block |
+ // for the renderer to send a new frame. Otherwise, NULL will be returned if |
+ // the backing store doesn't already exist. It will also return NULL if the |
// backing store could not be created. |
+ // |
+ // Mac only: NULL may also be returned if the last frame was GPU accelerated. |
+ // Call GetView()->HasAcceleratedSurface to determine if the last frame was |
+ // accelerated. |
BackingStore* GetBackingStore(bool force_create); |
// Allocate a new backing store of the given size. Returns NULL on failure |
@@ -465,6 +468,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
void OnMsgSetTooltipText(const string16& tooltip_text, |
WebKit::WebTextDirection text_direction_hint); |
void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
+ void OnCompositorSurfaceBuffersSwapped(int32 surface_id, |
+ uint64 surface_handle, |
+ int32 route_id, |
+ int32 gpu_process_host_id); |
void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
void OnMsgUpdateIsDelayed(); |
void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, |