| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 reduce_memory_result_(true), | 124 reduce_memory_result_(true), |
| 125 did_request_impl_side_invalidation_(false) { | 125 did_request_impl_side_invalidation_(false) { |
| 126 media::InitializeMediaLibrary(); | 126 media::InitializeMediaLibrary(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 LayerTreeSettings DefaultSettings() { | 129 LayerTreeSettings DefaultSettings() { |
| 130 LayerTreeSettings settings; | 130 LayerTreeSettings settings; |
| 131 settings.enable_surface_synchronization = true; | 131 settings.enable_surface_synchronization = true; |
| 132 settings.minimum_occlusion_tracking_size = gfx::Size(); | 132 settings.minimum_occlusion_tracking_size = gfx::Size(); |
| 133 settings.renderer_settings.texture_id_allocation_chunk_size = 1; | 133 settings.renderer_settings.texture_id_allocation_chunk_size = 1; |
| 134 settings.renderer_settings.buffer_to_texture_target_map = | 134 settings.buffer_to_texture_target_map = |
| 135 DefaultBufferToTextureTargetMapForTesting(); | 135 DefaultBufferToTextureTargetMapForTesting(); |
| 136 return settings; | 136 return settings; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void SetUp() override { | 139 void SetUp() override { |
| 140 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); | 140 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void TearDown() override { | 143 void TearDown() override { |
| 144 if (host_impl_) | 144 if (host_impl_) |
| (...skipping 12258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12403 | 12403 |
| 12404 TEST_F(LayerTreeHostImplTest, RasterColorSpace) { | 12404 TEST_F(LayerTreeHostImplTest, RasterColorSpace) { |
| 12405 LayerTreeSettings settings = DefaultSettings(); | 12405 LayerTreeSettings settings = DefaultSettings(); |
| 12406 settings.enable_color_correct_rasterization = true; | 12406 settings.enable_color_correct_rasterization = true; |
| 12407 CreateHostImpl(settings, CreateCompositorFrameSink()); | 12407 CreateHostImpl(settings, CreateCompositorFrameSink()); |
| 12408 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB()); | 12408 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB()); |
| 12409 } | 12409 } |
| 12410 | 12410 |
| 12411 } // namespace | 12411 } // namespace |
| 12412 } // namespace cc | 12412 } // namespace cc |
| OLD | NEW |