gpu: Duplicate GPU memory buffer handles properly when using in-process command buffer.

In-process command buffer needs similar logic as out-of-process
command buffer to ensure that buffers are not deleted before
the GPU service have been able to process the CreateImage request.

BUG=432971
TEST=cc_unittests --gtest_filter=PixelResourceTest/LayerTreeHostMasksPixelTest.MaskOfLayer/5 --single-process-tests

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

Cr-Commit-Position: refs/heads/master@{#309306}
1 file changed