cc: use property trees instead of CDP on the main thread
commit432edd07b8440a371ec734d0f56d49fbae9ebc46
authorenne <enne@chromium.org>
Mon, 11 May 2015 18:38:33 +0000 (11 11:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 18:38:50 +0000 (11 18:38 +0000)
treecd99064aee7fe054051a1fee9d43354c177561a6
parent78f11c3ad76332c7be502a627b1e3017ab4404db
cc: use property trees instead of CDP on the main thread

When impl-side painting is on, the main thread will use property trees
to calculate visible rects and update lists.  Because impl-side painting
is not shipped everywhere, this cannot be fully turned on everywhere.

This leaves testing in a bit of a weird state.  Previously, using
the "verify property trees" setting would let us catch differences
between CDP and property trees.  However, running CDP has side effects,
so to make sure that property trees on their own are valid, it
can't be run.

This means that any changes to CDP need to run in both states.
As CDP is in maintenance mode, this seems like the right balance.

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

Cr-Commit-Position: refs/heads/master@{#329196}
14 files changed:
cc/layers/layer.cc
cc/layers/painted_scrollbar_layer.cc
cc/layers/tiled_layer_unittest.cc
cc/trees/draw_property_utils.cc
cc/trees/draw_property_utils.h
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host.h
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common.h
cc/trees/layer_tree_host_common_unittest.cc
cc/trees/layer_tree_host_unittest.cc
content/renderer/gpu/render_widget_compositor.cc
tools/perf/benchmarks/draw_properties.py
tools/perf/measurements/draw_properties.py