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

Issue 1964793002: Revert of [Reland 1] Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed)

Created:
4 years, 7 months ago by ilja
Modified:
4 years, 7 months ago
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, ben+mojo_chromium.org, darin (slow to review)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of [Reland 1] Pepper takes ownership of a mailbox before passing it to the texture layer. (patchset #8 id:140001 of https://codereview.chromium.org/1943513002/ ) Reason for revert: Breaks WebGL on CrOS, crbug.com/610411. Original issue's description: > [Reland 1] Pepper takes ownership of a mailbox before passing it to the texture layer. > > This CL makes three changes from the original. > > 1. Replace a call to std::remove_if() with vec.erase(std::remove_if(), ...). > This was a logic error in the original CL that caused a crash any time the size > of the buffer was changed. This CL also adds a test that catches this bug. > > 2. Add some simple reference counting to PepperPluginInstanceImpl to track the > fact that a cc::TextureMailbox may be passed to |texture_layer_| more than once. > > 3. The SyncToken signal is now processed in the context of its own message: > WaitSyncToken. > > > I replaced the IPC message GpuCommandBufferMsg_ProduceFrontBuffer with > > GpuCommandBufferMsg_TakeFrontBuffer and GpuCommandBufferMsg_ReturnFrontBuffer. > > TakeFrontBuffer gives ownership of the front buffer to the client. When the > > client returns it with ReturnFrontBuffer, the command buffer may choose to reuse > > it. > > > > This means that pepper no longer needs to use > > SetTextureMailboxWithoutReleaseCallback. > > BUG=350204, 602484 > CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel > TEST=Run Chromium with the Pepper Flash plugin. Visit a site that supports Flash > video, such as http://vudu.com. Start playing a video, and then fullscreen the > video. Observe that Chromium does not crash. Please extensively test Chromium on > Flash 3D games and Flash video and make sure nothing else is working > incorrectly. > TBR=ccameron@chromium.org, bbudge@chromium.org, sky@chromium.org > > Committed: https://crrev.com/4734ed1b6740b772201b8accb3e2bd88cdea5c99 > Cr-Commit-Position: refs/heads/master@{#391686} TBR=piman@chromium.org,ccameron@chromium.org,bbudge@chromium.org,tsepez@chromium.org,sky@chromium.org,sunnyps@chromium.org,erikchen@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=350204, 602484 Committed: https://crrev.com/8c46143b0ca822b010d5f9c284eadc810b0678e8 Cr-Commit-Position: refs/heads/master@{#392548}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -551 lines) Patch
M cc/layers/texture_layer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layers/texture_layer.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M components/mus/gles2/command_buffer_impl.cc View 1 chunk +1 line, -6 lines 0 comments Download
M components/mus/public/interfaces/command_buffer.mojom View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.h View 4 chunks +3 lines, -47 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 4 chunks +16 lines, -92 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.h View 4 chunks +7 lines, -14 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 6 chunks +10 lines, -39 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 2 chunks +1 line, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 6 chunks +5 lines, -125 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 chunk +1 line, -4 lines 0 comments Download
M gpu/command_buffer/tests/gl_texture_mailbox_unittest.cc View 5 chunks +35 lines, -125 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.h View 1 chunk +1 line, -4 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 chunk +7 lines, -17 lines 0 comments Download
M gpu/ipc/common/gpu_messages.h View 2 chunks +2 lines, -14 lines 0 comments Download
M gpu/ipc/service/gpu_channel.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.h View 2 chunks +1 line, -4 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 4 chunks +9 lines, -22 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 chunk +0 lines, -7 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 2 chunks +0 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 4 chunks +0 lines, -17 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_api.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
ilja
Created Revert of [Reland 1] Pepper takes ownership of a mailbox before passing it to ...
4 years, 7 months ago (2016-05-10 02:17:55 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964793002/1
4 years, 7 months ago (2016-05-10 02:18:42 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-10 02:18:45 UTC) #4
hshi1
lgtm
4 years, 7 months ago (2016-05-10 02:21:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964793002/1
4 years, 7 months ago (2016-05-10 04:20:59 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-10 05:14:17 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 05:15:40 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8c46143b0ca822b010d5f9c284eadc810b0678e8
Cr-Commit-Position: refs/heads/master@{#392548}

Powered by Google App Engine
This is Rietveld 408576698