diff options
author | vmiura <vmiura@chromium.org> | 2015-03-10 14:43:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-10 21:43:55 +0000 |
commit | ef4cb5599226ee6c9c3f9597c44765eeaa8d88fa (patch) | |
tree | 3b7f2e6833290c3b036d0209b3103b80873fb86d /gpu | |
parent | 4357acb8dea4f61f6681f4c837faeb66ea8c9087 (diff) | |
download | chromium_src-ef4cb5599226ee6c9c3f9597c44765eeaa8d88fa.zip chromium_src-ef4cb5599226ee6c9c3f9597c44765eeaa8d88fa.tar.gz chromium_src-ef4cb5599226ee6c9c3f9597c44765eeaa8d88fa.tar.bz2 |
gpu: Change Flush to OrderingBarrier in IdHandler.
GLES2 implementations that use IdHandler, which includes Pepper3D,
require strict context ordering in glDelete* calls and have a high
overhead.
Now we can change this to use OrderingBarrier for lower overhead.
BUG=465593
Review URL: https://codereview.chromium.org/987243003
Cr-Commit-Position: refs/heads/master@{#319981}
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/client/share_group.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc index 6463200..f5c9bf1 100644 --- a/gpu/command_buffer/client/share_group.cc +++ b/gpu/command_buffer/client/share_group.cc @@ -60,9 +60,7 @@ class IdHandler : public IdHandlerInterface { (gl_impl->*delete_fn)(n, ids); // We need to ensure that the delete call is evaluated on the service side // before any other contexts issue commands using these client ids. - // TODO(vmiura): Can remove this by virtualizing internal ids, however - // this code only affects PPAPI for now. - gl_impl->helper()->CommandBufferHelper::Flush(); + gl_impl->helper()->CommandBufferHelper::OrderingBarrier(); return true; } |