| Index: cc/trees/layer_tree_host_unittest_context.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
|
| index cc536f41c19dacad1c5bd800a8213e15137f26c6..48e6530e25cd5856dcac009c43a582778f0ea6a9 100644
|
| --- a/cc/trees/layer_tree_host_unittest_context.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_context.cc
|
| @@ -103,7 +103,7 @@ class LayerTreeHostContextTest : public LayerTreeTest {
|
| // Only valid for single-threaded impl-side painting, which activates
|
| // immediately and will try to draw again when content has finished.
|
| DCHECK(!host_impl->proxy()->HasImplThread());
|
| - DCHECK(layer_tree_host()->settings().impl_side_painting);
|
| + DCHECK(host_impl->settings().impl_side_painting);
|
| return draw_result;
|
| }
|
| EXPECT_EQ(DRAW_SUCCESS, draw_result);
|
| @@ -876,7 +876,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| FakeContentLayerImpl* child_content = NULL;
|
| FakeContentLayerImpl* grandchild_content = NULL;
|
|
|
| - if (layer_tree_host()->settings().impl_side_painting) {
|
| + if (host_impl->settings().impl_side_painting) {
|
| root_picture = static_cast<FakePictureLayerImpl*>(
|
| host_impl->active_tree()->root_layer());
|
| child_picture =
|
| @@ -896,7 +896,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| ++num_commits_;
|
| switch (num_commits_) {
|
| case 1:
|
| - if (layer_tree_host()->settings().impl_side_painting) {
|
| + if (host_impl->settings().impl_side_painting) {
|
| EXPECT_EQ(0u, root_picture->release_resources_count());
|
| EXPECT_EQ(0u, child_picture->release_resources_count());
|
| EXPECT_EQ(0u, grandchild_picture->release_resources_count());
|
| @@ -911,7 +911,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| times_to_fail_create_ = 1;
|
| break;
|
| case 2:
|
| - if (layer_tree_host()->settings().impl_side_painting) {
|
| + if (host_impl->settings().impl_side_painting) {
|
| EXPECT_TRUE(root_picture->release_resources_count());
|
| EXPECT_TRUE(child_picture->release_resources_count());
|
| EXPECT_TRUE(grandchild_picture->release_resources_count());
|
| @@ -1269,7 +1269,7 @@ class UIResourceLostTestSimple : public UIResourceLostTest {
|
| virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) = 0;
|
|
|
| void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| - if (!layer_tree_host()->settings().impl_side_painting) {
|
| + if (!impl->settings().impl_side_painting) {
|
| StepCompleteOnImplThread(impl);
|
| PostStepCompleteToMainThread();
|
| ++time_step_;
|
| @@ -1277,7 +1277,7 @@ class UIResourceLostTestSimple : public UIResourceLostTest {
|
| }
|
|
|
| void DidActivateTreeOnThread(LayerTreeHostImpl* impl) override {
|
| - if (layer_tree_host()->settings().impl_side_painting) {
|
| + if (impl->settings().impl_side_painting) {
|
| StepCompleteOnImplThread(impl);
|
| PostStepCompleteToMainThread();
|
| ++time_step_;
|
|
|