summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:23:07 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 02:23:07 +0000
commita7fcdda3283b9b1d6b1abec7cb72939f79d28102 (patch)
tree9245cc8c4df8659531d101b222486f13e13d2752 /content/port
parent82a46452f5a2d88b8aafd140174b6b354b51dbaa (diff)
downloadchromium_src-a7fcdda3283b9b1d6b1abec7cb72939f79d28102.zip
chromium_src-a7fcdda3283b9b1d6b1abec7cb72939f79d28102.tar.gz
chromium_src-a7fcdda3283b9b1d6b1abec7cb72939f79d28102.tar.bz2
aura: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer
Currently CopyFromCompositingSurface does an async texture readback of current_surface_ which depends on the renderer compositor sending textures to the browser compositor. Under ubercomp, however, the current_surface_ will not exist. The cc/ compositor now supports async readback of layers. This uses the new mechanism to get the contents of the RWHVA's ui::Layer instead which is always available. The result of this readback can be a texture or a bitmap (when using software compositing). The result read by the compositor will already be cropped. If the result is a texture, we use the GLHelper to scale the result to the desired size. If it is a bitmap, we use skia::ImageOperations::Resize to do the same. R=piman BUG=162291 Review URL: https://chromiumcodereview.appspot.com/17971002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index 9b1f7fc..3028a70 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -295,6 +295,13 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
virtual void OnAccessibilityNotifications(
const std::vector<AccessibilityHostMsg_NotificationParams>& params) = 0;
+ // Return a value that is incremented each time the renderer swaps a new frame
+ // to the view.
+ virtual uint32 RendererFrameNumber() = 0;
+ // Called each time the RenderWidgetHost receives a new frame for display from
+ // the renderer.
+ virtual void DidReceiveRendererFrame() = 0;
+
#if defined(OS_MACOSX)
// Called just before GetBackingStore blocks for an updated frame.
virtual void AboutToWaitForBackingStoreMsg() = 0;