diff options
author | dyen <dyen@chromium.org> | 2016-02-23 18:46:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-24 02:47:24 +0000 |
commit | 7e9fd7734fc93011d9058d90646b02345424e252 (patch) | |
tree | 178198636ba2ac98e2fd9713428a899751deec66 /cc/quads | |
parent | 5cbaa77d1bf5dc22647a93919149106deabf4723 (diff) | |
download | chromium_src-7e9fd7734fc93011d9058d90646b02345424e252.zip chromium_src-7e9fd7734fc93011d9058d90646b02345424e252.tar.gz chromium_src-7e9fd7734fc93011d9058d90646b02345424e252.tar.bz2 |
Added sync token generation for more resources.
As an optimization, resource sync token generation should be done as
early as possible and ideally within the same GL command buffer stream
as the commands which modify the resource.
Sync token generation has been moved for the direct renderer case after
it has added all the render pass commands. It has also been added for
the HUD resource.
R=piman@chromium.org
BUG=584381
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1717443002
Cr-Commit-Position: refs/heads/master@{#377196}
Diffstat (limited to 'cc/quads')
-rw-r--r-- | cc/quads/draw_quad.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/quads/draw_quad.h b/cc/quads/draw_quad.h index bf824c1..8cf0eee 100644 --- a/cc/quads/draw_quad.h +++ b/cc/quads/draw_quad.h @@ -124,6 +124,12 @@ class CC_EXPORT DrawQuad { return ids + count; } + const ResourceId* const_begin() const { return ids; } + const ResourceId* const_end() const { + DCHECK_LE(count, kMaxResourceIdCount); + return ids + count; + } + uint32_t count; ResourceId ids[kMaxResourceIdCount]; }; |