summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 10:12:35 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 10:12:35 +0000
commit12c99ab07047534e4e1abbc49890c92e0d86db2c (patch)
tree875401b6d82931f087ef440f831222e0c457f18a /gpu/command_buffer/common
parent1787e1d4185119f7f68860f7eb2ad782ed6715f6 (diff)
downloadchromium_src-12c99ab07047534e4e1abbc49890c92e0d86db2c.zip
chromium_src-12c99ab07047534e4e1abbc49890c92e0d86db2c.tar.gz
chromium_src-12c99ab07047534e4e1abbc49890c92e0d86db2c.tar.bz2
cc: Use CHROMIUM_sync_query for CopyResource.
Use COMMANDS_COMPLETED queries instead of making the assumption that it's safe to access the source resource once the command has been processed on the service side. BUG=269808 Review URL: https://codereview.chromium.org/245753003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common')
-rw-r--r--gpu/command_buffer/common/capabilities.cc1
-rw-r--r--gpu/command_buffer/common/capabilities.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/capabilities.cc b/gpu/command_buffer/common/capabilities.cc
index 9f35c82..efc63eb 100644
--- a/gpu/command_buffer/common/capabilities.cc
+++ b/gpu/command_buffer/common/capabilities.cc
@@ -17,6 +17,7 @@ Capabilities::Capabilities()
texture_usage(false),
texture_storage(false),
discard_framebuffer(false),
+ sync_query(false),
map_image(false) {}
} // namespace gpu
diff --git a/gpu/command_buffer/common/capabilities.h b/gpu/command_buffer/common/capabilities.h
index b6c34da..81e3d55 100644
--- a/gpu/command_buffer/common/capabilities.h
+++ b/gpu/command_buffer/common/capabilities.h
@@ -20,6 +20,7 @@ struct GPU_EXPORT Capabilities {
bool texture_usage;
bool texture_storage;
bool discard_framebuffer;
+ bool sync_query;
// Capabilities below are not populated by GLES2Decoder.
bool map_image;