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

Issue 10103021: aura/texture transport: Keep ref to texture infos to avoid races with the UI (Closed)

Created:
8 years, 8 months ago by piman
Modified:
8 years, 8 months ago
Reviewers:
jonathan.backer
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

aura/texture transport: Keep ref to texture infos to avoid races with the UI In some cases, the UI may destroy the textures the renderer is rendering into before the renderer has a chance to finish. This patch makes it so that we avoid generating a lost context event in the page that is closing, because we can't recover correctly in the other pages in the same renderer process. This also adds logging so that we can audit all cases of lost context. BUG=122868 TEST=run aura chrome, open and close tabs (from the same process), observe no flashing and no mention of a lost context. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132638

Patch Set 1 #

Patch Set 2 : make clang happy #

Total comments: 5

Patch Set 3 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -59 lines) Patch
M content/common/gpu/texture_image_transport_surface.h View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.cc View 1 2 12 chunks +69 lines, -51 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
piman
8 years, 8 months ago (2012-04-17 02:41:11 UTC) #1
jonathan.backer
Just want to confirm my understanding: we don't really need to nix the GetParentInfo. It ...
8 years, 8 months ago (2012-04-17 17:21:49 UTC) #2
piman
On Tue, Apr 17, 2012 at 10:21 AM, <backer@chromium.org> wrote: > Just want to confirm ...
8 years, 8 months ago (2012-04-17 17:28:42 UTC) #3
piman
https://chromiumcodereview.appspot.com/10103021/diff/5001/content/common/gpu/texture_image_transport_surface.cc File content/common/gpu/texture_image_transport_surface.cc (right): https://chromiumcodereview.appspot.com/10103021/diff/5001/content/common/gpu/texture_image_transport_surface.cc#newcode205 content/common/gpu/texture_image_transport_surface.cc:205: textures_[1].info = NULL; On 2012/04/17 17:21:50, jonathan.backer wrote: > ...
8 years, 8 months ago (2012-04-17 17:37:24 UTC) #4
jonathan.backer
LGTM From offline discussion: - we delete the textures used in DestroySharedSurfaceHandle - without these ...
8 years, 8 months ago (2012-04-17 17:51:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/10103021/3003
8 years, 8 months ago (2012-04-17 18:36:17 UTC) #6
commit-bot: I haz the power
8 years, 8 months ago (2012-04-17 20:36:50 UTC) #7
Change committed as 132638

Powered by Google App Engine
This is Rietveld 408576698