| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "cc/output/begin_frame_args.h" | 37 #include "cc/output/begin_frame_args.h" |
| 38 #include "cc/output/compositor_frame_metadata.h" | 38 #include "cc/output/compositor_frame_metadata.h" |
| 39 #include "cc/output/copy_output_request.h" | 39 #include "cc/output/copy_output_request.h" |
| 40 #include "cc/output/copy_output_result.h" | 40 #include "cc/output/copy_output_result.h" |
| 41 #include "cc/output/gl_renderer.h" | 41 #include "cc/output/gl_renderer.h" |
| 42 #include "cc/output/latency_info_swap_promise.h" | 42 #include "cc/output/latency_info_swap_promise.h" |
| 43 #include "cc/quads/render_pass_draw_quad.h" | 43 #include "cc/quads/render_pass_draw_quad.h" |
| 44 #include "cc/quads/solid_color_draw_quad.h" | 44 #include "cc/quads/solid_color_draw_quad.h" |
| 45 #include "cc/quads/texture_draw_quad.h" | 45 #include "cc/quads/texture_draw_quad.h" |
| 46 #include "cc/quads/tile_draw_quad.h" | 46 #include "cc/quads/tile_draw_quad.h" |
| 47 #include "cc/resources/ui_resource_bitmap.h" |
| 48 #include "cc/resources/ui_resource_manager.h" |
| 47 #include "cc/test/animation_test_common.h" | 49 #include "cc/test/animation_test_common.h" |
| 48 #include "cc/test/begin_frame_args_test.h" | 50 #include "cc/test/begin_frame_args_test.h" |
| 49 #include "cc/test/fake_layer_tree_host_impl.h" | 51 #include "cc/test/fake_layer_tree_host_impl.h" |
| 50 #include "cc/test/fake_mask_layer_impl.h" | 52 #include "cc/test/fake_mask_layer_impl.h" |
| 51 #include "cc/test/fake_output_surface.h" | 53 #include "cc/test/fake_output_surface.h" |
| 52 #include "cc/test/fake_output_surface_client.h" | 54 #include "cc/test/fake_output_surface_client.h" |
| 53 #include "cc/test/fake_picture_layer_impl.h" | 55 #include "cc/test/fake_picture_layer_impl.h" |
| 54 #include "cc/test/fake_raster_source.h" | 56 #include "cc/test/fake_raster_source.h" |
| 55 #include "cc/test/fake_video_frame_provider.h" | 57 #include "cc/test/fake_video_frame_provider.h" |
| 56 #include "cc/test/geometry_test_utils.h" | 58 #include "cc/test/geometry_test_utils.h" |
| (...skipping 11115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11172 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); | 11174 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); |
| 11173 | 11175 |
| 11174 // Re-initialize with a software output surface. | 11176 // Re-initialize with a software output surface. |
| 11175 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); | 11177 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); |
| 11176 host_impl_->InitializeRenderer(output_surface_.get()); | 11178 host_impl_->InitializeRenderer(output_surface_.get()); |
| 11177 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 11179 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
| 11178 } | 11180 } |
| 11179 | 11181 |
| 11180 } // namespace | 11182 } // namespace |
| 11181 } // namespace cc | 11183 } // namespace cc |
| OLD | NEW |