From 7e9fd7734fc93011d9058d90646b02345424e252 Mon Sep 17 00:00:00 2001 From: dyen Date: Tue, 23 Feb 2016 18:46:02 -0800 Subject: 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} --- cc/quads/draw_quad.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cc/quads') 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]; }; -- cgit v1.1