OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/math_util.h" |
5 #include "cc/managed_tile_state.h" | 6 #include "cc/managed_tile_state.h" |
6 #include "cc/math_util.h" | |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 ManagedTileState::ManagedTileState() | 10 ManagedTileState::ManagedTileState() |
11 : can_use_gpu_memory(false), | 11 : can_use_gpu_memory(false), |
12 need_to_gather_pixel_refs(true), | 12 need_to_gather_pixel_refs(true), |
13 gpu_memmgr_stats_bin(NEVER_BIN), | 13 gpu_memmgr_stats_bin(NEVER_BIN), |
14 raster_state(IDLE_STATE), | 14 raster_state(IDLE_STATE), |
15 resolution(NON_IDEAL_RESOLUTION), | 15 resolution(NON_IDEAL_RESOLUTION), |
16 time_to_needed_in_seconds(std::numeric_limits<float>::infinity()), | 16 time_to_needed_in_seconds(std::numeric_limits<float>::infinity()), |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 state->SetBoolean("is_picture_pile_analyzed", picture_pile_analyzed); | 73 state->SetBoolean("is_picture_pile_analyzed", picture_pile_analyzed); |
74 state->SetBoolean("is_cheap_to_raster", | 74 state->SetBoolean("is_cheap_to_raster", |
75 picture_pile_analysis.is_cheap_to_raster); | 75 picture_pile_analysis.is_cheap_to_raster); |
76 state->SetBoolean("is_transparent", picture_pile_analysis.is_transparent); | 76 state->SetBoolean("is_transparent", picture_pile_analysis.is_transparent); |
77 state->SetBoolean("is_solid_color", picture_pile_analysis.is_solid_color); | 77 state->SetBoolean("is_solid_color", picture_pile_analysis.is_solid_color); |
78 return state.PassAs<base::Value>(); | 78 return state.PassAs<base::Value>(); |
79 } | 79 } |
80 | 80 |
81 } // namespace cc | 81 } // namespace cc |
82 | 82 |
OLD | NEW |