summaryrefslogtreecommitdiffstats
path: root/cc/test/test_web_graphics_context_3d.h
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 /cc/test/test_web_graphics_context_3d.h
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 'cc/test/test_web_graphics_context_3d.h')
-rw-r--r--cc/test/test_web_graphics_context_3d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index 39f8767..56ffc85 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -301,6 +301,9 @@ class TestWebGraphicsContext3D {
void set_support_texture_storage(bool support) {
test_capabilities_.gpu.texture_storage = support;
}
+ void set_support_sync_query(bool support) {
+ test_capabilities_.gpu.sync_query = support;
+ }
// When this context is lost, all contexts in its share group are also lost.
void add_share_group_context(TestWebGraphicsContext3D* context3d) {