Optimize PictureLayerTilingSet::visible_rect_history_ type.
Appending entries to visible_rect_history was a hotspot in profiling. Changing to std::deque, and re-ordering the update code so the deque only grows to 2 entries rather than 3. BUG=879668 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I576ba0ae278a04a0e7336b3b1cd589fadd25b177 Reviewed-on: https://chromium-review.googlesource.com/1200466Reviewed-by:Eric Karl <ericrk@chromium.org> Commit-Queue: Victor Miura <vmiura@chromium.org> Cr-Commit-Position: refs/heads/master@{#588238}
Showing
Please register or sign in to comment