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

Issue 383303004: Added more detailed result codes for CreateViewCommandBuffer. (Closed)

Created:
6 years, 5 months ago by Ken Russell (switch to Gerrit)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Added more detailed result codes for CreateViewCommandBuffer. Creation of a view command buffer can legitimately fail if the surface has unexpectedly been deleted, for example if the window has been rapidly opened and closed. This should not cause loss of the entire GpuChannel for the associated renderer process. Added new automated test for this issue. Also tested manually with test case from bug report, and increased number_of_gpu_process_kills in context_lost test to 30 and verified that previous fix for Issue 365904 continues to work. BUG=381024 R=piman@chromium.org,danakj@chromium.org,jamesr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283085

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed piman's review feedback. Added and verified automated test. #

Patch Set 3 : Deleted commented-out code from test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -44 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 3 chunks +7 lines, -6 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/gpu_message_filter.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/gpu_message_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 1 chunk +17 lines, -12 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 4 chunks +5 lines, -2 lines 0 comments Download
A content/common/gpu/gpu_result_codes.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A content/test/data/gpu/webgl_with_select_element.html View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/context_lost.py View 1 3 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ken Russell (switch to Gerrit)
Antoine, Dana, James: please review. Thanks.
6 years, 5 months ago (2014-07-11 23:02:01 UTC) #1
piman
lgtm https://codereview.chromium.org/383303004/diff/1/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/383303004/diff/1/content/browser/gpu/gpu_process_host.cc#newcode650 content/browser/gpu/gpu_process_host.cc:650: // and Send failing, if desired. Really, we ...
6 years, 5 months ago (2014-07-11 23:20:10 UTC) #2
Ken Russell (switch to Gerrit)
jschuh/cevans/inferno: OWNERS review of gpu_messages.h please. Managed to write an automated test for this issue. ...
6 years, 5 months ago (2014-07-12 00:44:52 UTC) #3
jschuh
ipc security lgtm (notes: replaced bool with an integer error code).
6 years, 5 months ago (2014-07-14 13:37:10 UTC) #4
Ken Russell (switch to Gerrit)
The CQ bit was checked by kbr@chromium.org
6 years, 5 months ago (2014-07-14 17:33:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/383303004/40001
6 years, 5 months ago (2014-07-14 17:34:59 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 23:42:51 UTC) #7
Message was sent while issue was closed.
Change committed as 283085

Powered by Google App Engine
This is Rietveld 408576698