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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 media::InitializeMediaLibrary(); | 107 media::InitializeMediaLibrary(); |
108 } | 108 } |
109 | 109 |
110 LayerTreeSettings DefaultSettings() { | 110 LayerTreeSettings DefaultSettings() { |
111 LayerTreeSettings settings; | 111 LayerTreeSettings settings; |
112 settings.minimum_occlusion_tracking_size = gfx::Size(); | 112 settings.minimum_occlusion_tracking_size = gfx::Size(); |
113 settings.renderer_settings.texture_id_allocation_chunk_size = 1; | 113 settings.renderer_settings.texture_id_allocation_chunk_size = 1; |
114 settings.gpu_rasterization_enabled = true; | 114 settings.gpu_rasterization_enabled = true; |
115 settings.verify_clip_tree_calculations = true; | 115 settings.verify_clip_tree_calculations = true; |
116 settings.verify_transform_tree_calculations = true; | 116 settings.verify_transform_tree_calculations = true; |
| 117 settings.renderer_settings.buffer_to_texture_target_map = |
| 118 DefaultBufferToTextureTargetMapForTesting(); |
117 return settings; | 119 return settings; |
118 } | 120 } |
119 | 121 |
120 void SetUp() override { | 122 void SetUp() override { |
121 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 123 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
122 } | 124 } |
123 | 125 |
124 void TearDown() override { | 126 void TearDown() override { |
125 if (host_impl_) | 127 if (host_impl_) |
126 host_impl_->ReleaseOutputSurface(); | 128 host_impl_->ReleaseOutputSurface(); |
(...skipping 10958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11085 | 11087 |
11086 // Re-initialize with a software output surface. | 11088 // Re-initialize with a software output surface. |
11087 output_surface_ = FakeOutputSurface::CreateSoftware( | 11089 output_surface_ = FakeOutputSurface::CreateSoftware( |
11088 base::WrapUnique(new SoftwareOutputDevice)); | 11090 base::WrapUnique(new SoftwareOutputDevice)); |
11089 host_impl_->InitializeRenderer(output_surface_.get()); | 11091 host_impl_->InitializeRenderer(output_surface_.get()); |
11090 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 11092 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
11091 } | 11093 } |
11092 | 11094 |
11093 } // namespace | 11095 } // namespace |
11094 } // namespace cc | 11096 } // namespace cc |
OLD | NEW |