summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorsievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 02:02:12 +0000
committersievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 02:02:12 +0000
commite4e44490e9babcbc0414045fddab1d6797cbf072 (patch)
tree9c02aa436060b886c595d4f20e45251614d0b1f9 /content/browser
parent695721fe844cafc5bddc07015285543550fc16e6 (diff)
downloadchromium_src-e4e44490e9babcbc0414045fddab1d6797cbf072.zip
chromium_src-e4e44490e9babcbc0414045fddab1d6797cbf072.tar.gz
chromium_src-e4e44490e9babcbc0414045fddab1d6797cbf072.tar.bz2
Aura: Run DidCommit callbacks when context is lost.
BUG=170099 Review URL: https://chromiumcodereview.appspot.com/11958005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/renderer_host/render_widget_host_view_aura.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index aea361a..ca49603 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1786,6 +1786,11 @@ void RenderWidgetHostViewAura::OnLostResources() {
UpdateExternalTexture();
locks_pending_commit_.clear();
+ // Make sure all ImageTransportClients are deleted now that the context those
+ // are using is becoming invalid. This sends pending ACKs and needs to happen
+ // after calling UpdateExternalTexture() which syncs with the impl thread.
+ RunCompositingDidCommitCallbacks();
+
DCHECK(!shared_surface_handle_.is_null());
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
factory->DestroySharedSurfaceHandle(shared_surface_handle_);