OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/layers/picture_image_layer_impl.h" | 5 #include "cc/layers/picture_image_layer_impl.h" |
6 | 6 |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "cc/layers/append_quads_data.h" | 8 #include "cc/layers/append_quads_data.h" |
9 #include "cc/quads/draw_quad.h" | 9 #include "cc/quads/draw_quad.h" |
10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 float maximum_animation_contents_scale, | 69 float maximum_animation_contents_scale, |
70 bool animating_transform_to_screen, | 70 bool animating_transform_to_screen, |
71 gfx::Rect viewport_rect) { | 71 gfx::Rect viewport_rect) { |
72 layer->draw_properties().ideal_contents_scale = ideal_contents_scale; | 72 layer->draw_properties().ideal_contents_scale = ideal_contents_scale; |
73 layer->draw_properties().device_scale_factor = device_scale_factor; | 73 layer->draw_properties().device_scale_factor = device_scale_factor; |
74 layer->draw_properties().page_scale_factor = page_scale_factor; | 74 layer->draw_properties().page_scale_factor = page_scale_factor; |
75 layer->draw_properties().maximum_animation_contents_scale = | 75 layer->draw_properties().maximum_animation_contents_scale = |
76 maximum_animation_contents_scale; | 76 maximum_animation_contents_scale; |
77 layer->draw_properties().screen_space_transform_is_animating = | 77 layer->draw_properties().screen_space_transform_is_animating = |
78 animating_transform_to_screen; | 78 animating_transform_to_screen; |
79 layer->draw_properties().visible_content_rect = viewport_rect; | 79 layer->draw_properties().visible_layer_rect = viewport_rect; |
80 bool resourceless_software_draw = false; | 80 bool resourceless_software_draw = false; |
81 layer->UpdateTiles(resourceless_software_draw); | 81 layer->UpdateTiles(resourceless_software_draw); |
82 } | 82 } |
83 | 83 |
84 protected: | 84 protected: |
85 FakeImplProxy proxy_; | 85 FakeImplProxy proxy_; |
86 TestSharedBitmapManager shared_bitmap_manager_; | 86 TestSharedBitmapManager shared_bitmap_manager_; |
87 TestTaskGraphRunner task_graph_runner_; | 87 TestTaskGraphRunner task_graph_runner_; |
88 FakeLayerTreeHostImpl host_impl_; | 88 FakeLayerTreeHostImpl host_impl_; |
89 }; | 89 }; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 active_layer->DidDraw(nullptr); | 149 active_layer->DidDraw(nullptr); |
150 | 150 |
151 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material); | 151 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list.front()->material); |
152 | 152 |
153 // Tiles are ready at correct scale, so should not set had_incomplete_tile. | 153 // Tiles are ready at correct scale, so should not set had_incomplete_tile. |
154 EXPECT_EQ(0, data.num_incomplete_tiles); | 154 EXPECT_EQ(0, data.num_incomplete_tiles); |
155 } | 155 } |
156 | 156 |
157 } // namespace | 157 } // namespace |
158 } // namespace cc | 158 } // namespace cc |
OLD | NEW |