Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Issue 1707143002: Added methods to generate sync tokens for resource id(s). (Closed)

Created:
4 years, 10 months ago by David Yen
Modified:
4 years, 10 months ago
Reviewers:
piman
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added methods to generate sync tokens for resource id(s). New functions have been added so a sync token can represent multiple resources at once. Adding a single sync token at the end of generating a multitude of resources can be a win. The most obvious use cases of this is the video layer which generates a resource for each layer. A single sync token is now generated at the end of the layer generation. The layer tree UI resource also generates its own sync token. BUG=584381 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/6aa453542a8bb25a5616151d9444022d50ed9e98 Cr-Commit-Position: refs/heads/master@{#376039}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added reserve #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
M cc/layers/video_layer_impl.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 chunk +38 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
David Yen
https://codereview.chromium.org/1707143002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1707143002/diff/1/cc/resources/resource_provider.cc#newcode756 cc/resources/resource_provider.cc:756: void ResourceProvider::GenerateSyncTokenForResource(ResourceId resource_id) { From piman@ (originally inside CopyToResource ...
4 years, 10 months ago (2016-02-17 21:53:29 UTC) #2
David Yen
https://codereview.chromium.org/1707143002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1707143002/diff/1/cc/resources/resource_provider.cc#newcode756 cc/resources/resource_provider.cc:756: void ResourceProvider::GenerateSyncTokenForResource(ResourceId resource_id) { On 2016/02/17 21:53:28, David Yen ...
4 years, 10 months ago (2016-02-17 21:54:36 UTC) #4
piman
lgtm https://codereview.chromium.org/1707143002/diff/1/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1707143002/diff/1/cc/layers/video_layer_impl.cc#newcode127 cc/layers/video_layer_impl.cc:127: ResourceProvider::ResourceIdArray resource_ids; nit: resource_ids.reserve(external_resources.mailboxes.size()); to avoid reallocs.
4 years, 10 months ago (2016-02-17 22:47:05 UTC) #5
David Yen
https://codereview.chromium.org/1707143002/diff/1/cc/layers/video_layer_impl.cc File cc/layers/video_layer_impl.cc (right): https://codereview.chromium.org/1707143002/diff/1/cc/layers/video_layer_impl.cc#newcode127 cc/layers/video_layer_impl.cc:127: ResourceProvider::ResourceIdArray resource_ids; On 2016/02/17 22:47:04, piman wrote: > nit: ...
4 years, 10 months ago (2016-02-17 22:52:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707143002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707143002/20001
4 years, 10 months ago (2016-02-17 22:55:23 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-18 00:01:40 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 00:02:33 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6aa453542a8bb25a5616151d9444022d50ed9e98
Cr-Commit-Position: refs/heads/master@{#376039}

Powered by Google App Engine
This is Rietveld 408576698