cc: Avoid duplicate work when computing draw properties using property trees

This adds a ComputeLayerDrawPropertiesUsingPropertyTrees function and a
ComputeSurfaceDrawPropertiesUsingPropertyTrees function that compute
these properties together, avoiding re-computing values that are needed
by the computation of more than one property.

BUG=497817
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#347400}
diff --git a/cc/cc.gyp b/cc/cc.gyp
index fb5916e..5c1ffbb 100644
--- a/cc/cc.gyp
+++ b/cc/cc.gyp
@@ -221,6 +221,8 @@
         'layers/picture_layer_impl.cc',
         'layers/picture_layer_impl.h',
         'layers/render_pass_sink.h',
+        'layers/render_surface_draw_properties.cc',
+        'layers/render_surface_draw_properties.h',
         'layers/render_surface_impl.cc',
         'layers/render_surface_impl.h',
         'layers/scrollbar_layer_impl_base.cc',