summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 23:02:30 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 23:02:30 +0000
commit53b4cc1380a09bba155f2465dc263c78033e8229 (patch)
treef4cf93be3a26a217bb6fbd3a1a8e789191e03b89 /content/port
parent939e4a6ec8fd0ba5bf8989bedba91719cbb0e040 (diff)
downloadchromium_src-53b4cc1380a09bba155f2465dc263c78033e8229.zip
chromium_src-53b4cc1380a09bba155f2465dc263c78033e8229.tar.gz
chromium_src-53b4cc1380a09bba155f2465dc263c78033e8229.tar.bz2
Associate an id with the output surface to handle lost contexts
This lets us cull acks that were meant for a previous output surface, so that we don't try to return/release resources that have been destroyed already. BUG=239931 Review URL: https://chromiumcodereview.appspot.com/19331002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index a7cc683..4af4087 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -242,7 +242,9 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
// returned only if the accelerated surface size matches.
virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
- virtual void OnSwapCompositorFrame(scoped_ptr<cc::CompositorFrame> frame) = 0;
+ virtual void OnSwapCompositorFrame(
+ uint32 output_surface_id,
+ scoped_ptr<cc::CompositorFrame> frame) = 0;
virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;