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 <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 on_can_draw_state_changed_called_(false), | 94 on_can_draw_state_changed_called_(false), |
95 did_notify_ready_to_activate_(false), | 95 did_notify_ready_to_activate_(false), |
96 did_request_commit_(false), | 96 did_request_commit_(false), |
97 did_request_redraw_(false), | 97 did_request_redraw_(false), |
98 did_request_animate_(false), | 98 did_request_animate_(false), |
99 did_request_prepare_tiles_(false), | 99 did_request_prepare_tiles_(false), |
100 did_complete_page_scale_animation_(false), | 100 did_complete_page_scale_animation_(false), |
101 reduce_memory_result_(true), | 101 reduce_memory_result_(true), |
102 current_limit_bytes_(0), | 102 current_limit_bytes_(0), |
103 current_priority_cutoff_value_(0) { | 103 current_priority_cutoff_value_(0) { |
104 media::InitializeMediaLibraryForTesting(); | 104 media::InitializeMediaLibrary(); |
105 } | 105 } |
106 | 106 |
107 LayerTreeSettings DefaultSettings() { | 107 LayerTreeSettings DefaultSettings() { |
108 LayerTreeSettings settings; | 108 LayerTreeSettings settings; |
109 settings.minimum_occlusion_tracking_size = gfx::Size(); | 109 settings.minimum_occlusion_tracking_size = gfx::Size(); |
110 settings.impl_side_painting = true; | 110 settings.impl_side_painting = true; |
111 settings.renderer_settings.texture_id_allocation_chunk_size = 1; | 111 settings.renderer_settings.texture_id_allocation_chunk_size = 1; |
112 settings.report_overscroll_only_for_scrollable_axes = true; | 112 settings.report_overscroll_only_for_scrollable_axes = true; |
113 settings.use_pinch_virtual_viewport = true; | 113 settings.use_pinch_virtual_viewport = true; |
114 settings.gpu_rasterization_enabled = true; | 114 settings.gpu_rasterization_enabled = true; |
(...skipping 7685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7800 | 7800 |
7801 host_impl_->SetHasGpuRasterizationTrigger(false); | 7801 host_impl_->SetHasGpuRasterizationTrigger(false); |
7802 host_impl_->SetContentIsSuitableForGpuRasterization(false); | 7802 host_impl_->SetContentIsSuitableForGpuRasterization(false); |
7803 EXPECT_EQ(GpuRasterizationStatus::ON_FORCED, | 7803 EXPECT_EQ(GpuRasterizationStatus::ON_FORCED, |
7804 host_impl_->gpu_rasterization_status()); | 7804 host_impl_->gpu_rasterization_status()); |
7805 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); | 7805 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); |
7806 } | 7806 } |
7807 | 7807 |
7808 } // namespace | 7808 } // namespace |
7809 } // namespace cc | 7809 } // namespace cc |
OLD | NEW |