| 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 "cc/layers/append_quads_data.h" | 7 #include "cc/layers/append_quads_data.h" |
| 8 #include "cc/quads/draw_quad.h" | 8 #include "cc/quads/draw_quad.h" |
| 9 #include "cc/resources/tile_priority.h" | 9 #include "cc/resources/tile_priority.h" |
| 10 #include "cc/test/fake_impl_proxy.h" | 10 #include "cc/test/fake_impl_proxy.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 MockOcclusionTracker<LayerImpl> occlusion_tracker; | 150 MockOcclusionTracker<LayerImpl> occlusion_tracker; |
| 151 scoped_ptr<RenderPass> render_pass = RenderPass::Create(); | 151 scoped_ptr<RenderPass> render_pass = RenderPass::Create(); |
| 152 AppendQuadsData data; | 152 AppendQuadsData data; |
| 153 active_layer->WillDraw(DRAW_MODE_SOFTWARE, NULL); | 153 active_layer->WillDraw(DRAW_MODE_SOFTWARE, NULL); |
| 154 active_layer->AppendQuads(render_pass.get(), occlusion_tracker, &data); | 154 active_layer->AppendQuads(render_pass.get(), occlusion_tracker, &data); |
| 155 active_layer->DidDraw(NULL); | 155 active_layer->DidDraw(NULL); |
| 156 | 156 |
| 157 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list[0]->material); | 157 EXPECT_EQ(DrawQuad::TILED_CONTENT, render_pass->quad_list[0]->material); |
| 158 | 158 |
| 159 // Tiles are ready at correct scale, so should not set had_incomplete_tile. | 159 // Tiles are ready at correct scale, so should not set had_incomplete_tile. |
| 160 EXPECT_FALSE(data.had_incomplete_tile); | 160 EXPECT_EQ(0, data.num_incomplete_tiles); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace | 163 } // namespace |
| 164 } // namespace cc | 164 } // namespace cc |
| OLD | NEW |