cc: Remove DrawQuad::IterateResoruces
commit0eca2e87110112c678c5f4c89b7f99e2de6026bb
authorvmpstr <vmpstr@chromium.org>
Tue, 2 Jun 2015 22:14:46 +0000 (2 15:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Jun 2015 22:15:17 +0000 (2 22:15 +0000)
tree6a3e39b085e5d8851c42ccf0b8a0f3e0a92775f6
parent6c8207fe7d79a2150ce7c4007678d10c23475630
cc: Remove DrawQuad::IterateResoruces

This patch removes IterateResources function in favor of
iterating resources directly on the quad. In order to
accomplish this, each derived quad uses new resources
object on the base class to store all of the resources
it needs. This allows the calling code that used to call
IterateResources with a callback to instead directly
iterate all of the ids and manipulate them in any way
that is required.

This improves the performance of the IterateResources
test by ~30%.

BUG=492765
R=danakj, piman@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#332476}
45 files changed:
cc/layers/delegated_renderer_layer_impl.cc
cc/layers/layer_impl.cc
cc/layers/tiled_layer_impl_unittest.cc
cc/output/delegating_renderer.cc
cc/output/gl_renderer.cc
cc/output/overlay_strategy_common.cc
cc/output/overlay_unittest.cc
cc/output/software_renderer.cc
cc/quads/checkerboard_draw_quad.cc
cc/quads/checkerboard_draw_quad.h
cc/quads/debug_border_draw_quad.cc
cc/quads/debug_border_draw_quad.h
cc/quads/draw_quad.cc
cc/quads/draw_quad.h
cc/quads/draw_quad_perftest.cc
cc/quads/draw_quad_unittest.cc
cc/quads/io_surface_draw_quad.cc
cc/quads/io_surface_draw_quad.h
cc/quads/list_container_unittest.cc
cc/quads/picture_draw_quad.cc
cc/quads/picture_draw_quad.h
cc/quads/render_pass_draw_quad.cc
cc/quads/render_pass_draw_quad.h
cc/quads/solid_color_draw_quad.cc
cc/quads/solid_color_draw_quad.h
cc/quads/stream_video_draw_quad.cc
cc/quads/stream_video_draw_quad.h
cc/quads/surface_draw_quad.cc
cc/quads/surface_draw_quad.h
cc/quads/texture_draw_quad.cc
cc/quads/texture_draw_quad.h
cc/quads/tile_draw_quad.cc
cc/quads/tile_draw_quad.h
cc/quads/yuv_video_draw_quad.cc
cc/quads/yuv_video_draw_quad.h
cc/surfaces/surface_aggregator.cc
cc/surfaces/surface_aggregator.h
cc/test/fake_delegated_renderer_layer_impl.cc
cc/trees/layer_tree_host_unittest.cc
cc/trees/layer_tree_host_unittest_delegated.cc
content/common/cc_messages.cc
content/common/cc_messages.h
content/common/cc_messages_unittest.cc
mojo/converters/surfaces/surfaces_type_converters.cc
mojo/converters/surfaces/tests/surface_unittest.cc