Create DrawQuad in RenderPass and only give out raw pointer to layers
commitf7030c34dd9efa5710b503d88e37b7e848a436ce
authorweiliangc@chromium.org <weiliangc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 3 Jul 2014 18:54:34 +0000 (3 18:54 +0000)
committerweiliangc@chromium.org <weiliangc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 3 Jul 2014 18:54:34 +0000 (3 18:54 +0000)
tree1482a8105f389ae2244b2c03f25d3dd55b2b2adc
parent405cb61dc2d5b8969b69d005e57873a239e5d89c
Create DrawQuad in RenderPass and only give out raw pointer to layers

Instead of each layer calling Create function on DrawQuad and pass
ownership around, create DrawQuad in RenderPass and only pass the raw
pointer to layers.

BUG=344962
TEST=cc_unittests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281306 0039d316-1c4b-4281-b951-d872f2087c98
23 files changed:
cc/layers/delegated_renderer_layer_impl.cc
cc/layers/delegated_renderer_layer_impl_unittest.cc
cc/layers/heads_up_display_layer_impl.cc
cc/layers/io_surface_layer_impl.cc
cc/layers/layer_impl.cc
cc/layers/nine_patch_layer_impl.cc
cc/layers/painted_scrollbar_layer_impl.cc
cc/layers/picture_layer_impl.cc
cc/layers/render_surface_impl.cc
cc/layers/solid_color_layer_impl.cc
cc/layers/solid_color_scrollbar_layer_impl.cc
cc/layers/surface_layer_impl.cc
cc/layers/texture_layer_impl.cc
cc/layers/tiled_layer_impl.cc
cc/layers/ui_resource_layer_impl.cc
cc/layers/video_layer_impl.cc
cc/quads/draw_quad.h
cc/quads/render_pass.cc
cc/quads/render_pass.h
cc/surfaces/surface_aggregator_test_helpers.cc
cc/test/render_pass_test_utils.cc
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc