Added more detailed result codes for CreateViewCommandBuffer.
commita2c351d808b62f74a152fd42e4c1f74d3c129bde
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Jul 2014 23:42:39 +0000 (14 23:42 +0000)
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Jul 2014 23:42:39 +0000 (14 23:42 +0000)
treeef6936d69386d2edbaec8f0f81e940f2ed37b8b4
parentabf9d8a185680c402e9fda2fd42a1d62f7893508
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

Review URL: https://codereview.chromium.org/383303004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283085 0039d316-1c4b-4281-b951-d872f2087c98
18 files changed:
content/browser/gpu/browser_gpu_channel_host_factory.cc
content/browser/gpu/browser_gpu_channel_host_factory.h
content/browser/gpu/gpu_process_host.cc
content/browser/gpu/gpu_process_host.h
content/browser/renderer_host/gpu_message_filter.cc
content/browser/renderer_host/gpu_message_filter.h
content/common/gpu/client/gpu_channel_host.cc
content/common/gpu/client/gpu_channel_host.h
content/common/gpu/gpu_channel.cc
content/common/gpu/gpu_channel.h
content/common/gpu/gpu_channel_manager.cc
content/common/gpu/gpu_messages.h
content/common/gpu/gpu_result_codes.h [new file with mode: 0644]
content/content_common.gypi
content/renderer/render_thread_impl.cc
content/renderer/render_thread_impl.h
content/test/data/gpu/webgl_with_select_element.html [new file with mode: 0644]
content/test/gpu/gpu_tests/context_lost.py