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

Issue 189333003: cc: Allow pepper to avoid DCHECK but reuse gpu::Mailbox. (Closed)

Created:
6 years, 9 months ago by danakj
Modified:
6 years, 9 months ago
Reviewers:
piman
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Allow pepper to avoid DCHECK but reuse gpu::Mailbox. When setting a texture mailbox on TextureLayer, reusing the same TextureMailbox is very fishy since the gpu::Mailbox would end up being released back to the client multiple times. However since pepper does magical bad things by using a single texture that somehow is double buffered (this is wrong and to be fixed), it needs to give the texture to cc multiple times. It is safer in this case since its ReleaseCallback is empty. We can encode this with a SetTextureMailboxWithoutReleaseCallback method on TextureLayer that pepper can use, and it avoids this DCHECK. The method comes with a big warning. Pepper should be fixed to avoid visual tearing, and this method should go away. R=piman BUG=350204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255704

Patch Set 1 #

Patch Set 2 : baddcheck: #

Patch Set 3 : baddcheck: #

Patch Set 4 : baddcheck: compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -18 lines) Patch
M cc/layers/texture_layer.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M cc/layers/texture_layer.cc View 1 3 chunks +32 lines, -9 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 3 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
6 years, 9 months ago (2014-03-07 00:54:51 UTC) #1
piman
LGTM, thanks.
6 years, 9 months ago (2014-03-07 01:01:33 UTC) #2
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-07 16:25:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/189333003/40001
6 years, 9 months ago (2014-03-07 16:25:45 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 16:26:45 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg, linux_chromium_rel, mac_chromium_compile_dbg, mac_chromium_rel
6 years, 9 months ago (2014-03-07 16:26:46 UTC) #6
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-07 16:31:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/189333003/60001
6 years, 9 months ago (2014-03-07 16:32:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/189333003/60001
6 years, 9 months ago (2014-03-07 20:14:49 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 22:09:43 UTC) #10
Message was sent while issue was closed.
Change committed as 255704

Powered by Google App Engine
This is Rietveld 408576698