summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2014-11-01 06:09:30 -0700
committerCommit bot <commit-bot@chromium.org>2014-11-01 13:09:48 +0000
commit93b8beea2b4716d2484f3499a6370c92d3e39b30 (patch)
tree7bc075e08024120657a17921386f6fb2aa537238
parent69acc50f19bb0888a6f35054c5a966f2acf1f0c7 (diff)
downloadchromium_src-93b8beea2b4716d2484f3499a6370c92d3e39b30.zip
chromium_src-93b8beea2b4716d2484f3499a6370c92d3e39b30.tar.gz
chromium_src-93b8beea2b4716d2484f3499a6370c92d3e39b30.tar.bz2
gpu: Remove flush of command buffer before creating a new image.
This is unnecessary as image ids are not reused. CreateImage will fail if generation of image ids wraparound as negative ids are considered an error. R=piman@chromium.org BUG= Review URL: https://codereview.chromium.org/689253002 Cr-Commit-Position: refs/heads/master@{#302385}
-rw-r--r--gpu/command_buffer/client/gles2_implementation.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 96a71fc..ccb1c81 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -3953,9 +3953,6 @@ GLuint GLES2Implementation::CreateImageCHROMIUMHelper(ClientBuffer buffer,
return 0;
}
- // Flush the command stream to ensure ordering in case the newly
- // returned image_id has recently been in use with a different buffer.
- helper_->CommandBufferHelper::Flush();
int32_t image_id =
gpu_control_->CreateImage(buffer, width, height, internalformat);
if (image_id < 0) {