| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 skip_draw_layers_in_on_draw_(false) { | 105 skip_draw_layers_in_on_draw_(false) { |
| 106 media::InitializeMediaLibrary(); | 106 media::InitializeMediaLibrary(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 LayerTreeSettings DefaultSettings() { | 109 LayerTreeSettings DefaultSettings() { |
| 110 LayerTreeSettings settings; | 110 LayerTreeSettings settings; |
| 111 settings.minimum_occlusion_tracking_size = gfx::Size(); | 111 settings.minimum_occlusion_tracking_size = gfx::Size(); |
| 112 settings.renderer_settings.texture_id_allocation_chunk_size = 1; | 112 settings.renderer_settings.texture_id_allocation_chunk_size = 1; |
| 113 settings.gpu_rasterization_enabled = true; | 113 settings.gpu_rasterization_enabled = true; |
| 114 settings.verify_clip_tree_calculations = true; | 114 settings.verify_clip_tree_calculations = true; |
| 115 settings.verify_transform_tree_calculations = true; |
| 115 return settings; | 116 return settings; |
| 116 } | 117 } |
| 117 | 118 |
| 118 void SetUp() override { | 119 void SetUp() override { |
| 119 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 120 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
| 120 } | 121 } |
| 121 | 122 |
| 122 void TearDown() override {} | 123 void TearDown() override {} |
| 123 | 124 |
| 124 void UpdateRendererCapabilitiesOnImplThread() override {} | 125 void UpdateRendererCapabilitiesOnImplThread() override {} |
| (...skipping 10810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10935 | 10936 |
| 10936 // Re-initialize with a software output surface. | 10937 // Re-initialize with a software output surface. |
| 10937 output_surface_ = FakeOutputSurface::CreateSoftware( | 10938 output_surface_ = FakeOutputSurface::CreateSoftware( |
| 10938 base::WrapUnique(new SoftwareOutputDevice)); | 10939 base::WrapUnique(new SoftwareOutputDevice)); |
| 10939 host_impl_->InitializeRenderer(output_surface_.get()); | 10940 host_impl_->InitializeRenderer(output_surface_.get()); |
| 10940 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 10941 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
| 10941 } | 10942 } |
| 10942 | 10943 |
| 10943 } // namespace | 10944 } // namespace |
| 10944 } // namespace cc | 10945 } // namespace cc |
| OLD | NEW |