cc: Reduce the SolidColorDrawQuad generated by chrome
Since PictureLayerImpl::AppendQuads and SolidColorLayerImpl ::AppendSolidQuads both use scale=1 for its shared quad state, pages like chrome://about can generate ~200 SCDQ on hi dpi phones (e.g. pixel 2). SolidColorDrawQuads are cheap to draw. In this CL, I re-visited the tile management and generate only 1 SolidColorDrawQuad. I tested the performance on cc_scroll_200_layer_grid, and thread_GPU_cpu_time_per_frame is improved to 2.215 from 2.754. Performance result summary: https://x20.corp.google.com/users/yi/yiyix/www/1%20solid%20color%20draw%20quad%20analysis Bug: 879379 TBR=kbr@chromium.org Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I8deaf29d1f0ed8f2d052ff77c8673b4e39877ab6 Reviewed-on: https://chromium-review.googlesource.com/c/1258386 Commit-Queue: Yi Xu <yiyix@chromium.org> Reviewed-by:enne <enne@chromium.org> Cr-Commit-Position: refs/heads/master@{#598867}
Showing