Commit 6e943448 authored by reveman's avatar reveman Committed by Commit bot

cc: Change TODO into comment.

After implementing this optimization I found that it had no
impact on performance. Changing the TODO into a comment in
case we need to revisit this in the future.

BUG=
TBR=vmpstr
NOTRY=true

Review URL: https://codereview.chromium.org/544863008

Cr-Commit-Position: refs/heads/master@{#293558}
parent db1f2fe9
......@@ -334,8 +334,9 @@ size_t PictureLayerTilingSet::GPUMemoryUsageInBytes() const {
PictureLayerTilingSet::TilingRange PictureLayerTilingSet::GetTilingRange(
TilingRangeType type) const {
// TODO(reveman): Compute these ranges only when the tiling set has changed
// instead of each time GetTilingRange() is called.
// Doesn't seem to be the case right now but if it ever becomes a performance
// problem to compute these ranges each time this function is called, we can
// compute them only when the tiling set has changed instead.
TilingRange high_res_range(0, 0);
TilingRange low_res_range(tilings_.size(), tilings_.size());
for (size_t i = 0; i < tilings_.size(); ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment