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/resources/managed_tile_state.h" | 5 #include "cc/resources/managed_tile_state.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 state->Set("bin.0", TileManagerBinAsValue(bin[ACTIVE_TREE]).release()); | 65 state->Set("bin.0", TileManagerBinAsValue(bin[ACTIVE_TREE]).release()); |
66 state->Set("bin.1", TileManagerBinAsValue(bin[PENDING_TREE]).release()); | 66 state->Set("bin.1", TileManagerBinAsValue(bin[PENDING_TREE]).release()); |
67 state->Set("gpu_memmgr_stats_bin", | 67 state->Set("gpu_memmgr_stats_bin", |
68 TileManagerBinAsValue(bin[ACTIVE_TREE]).release()); | 68 TileManagerBinAsValue(bin[ACTIVE_TREE]).release()); |
69 state->Set("resolution", TileResolutionAsValue(resolution).release()); | 69 state->Set("resolution", TileResolutionAsValue(resolution).release()); |
70 state->Set("time_to_needed_in_seconds", | 70 state->Set("time_to_needed_in_seconds", |
71 MathUtil::AsValueSafely(time_to_needed_in_seconds).release()); | 71 MathUtil::AsValueSafely(time_to_needed_in_seconds).release()); |
72 state->Set("distance_to_visible_in_pixels", | 72 state->Set("distance_to_visible_in_pixels", |
73 MathUtil::AsValueSafely(distance_to_visible_in_pixels).release()); | 73 MathUtil::AsValueSafely(distance_to_visible_in_pixels).release()); |
74 state->SetBoolean("is_picture_pile_analyzed", picture_pile_analyzed); | 74 state->SetBoolean("is_picture_pile_analyzed", picture_pile_analyzed); |
75 state->SetBoolean("is_cheap_to_raster", | |
76 picture_pile_analysis.is_cheap_to_raster); | |
77 state->SetBoolean("is_transparent", picture_pile_analysis.is_transparent); | 75 state->SetBoolean("is_transparent", picture_pile_analysis.is_transparent); |
78 state->SetBoolean("is_solid_color", picture_pile_analysis.is_solid_color); | 76 state->SetBoolean("is_solid_color", picture_pile_analysis.is_solid_color); |
79 return state.PassAs<base::Value>(); | 77 return state.PassAs<base::Value>(); |
80 } | 78 } |
81 | 79 |
82 } // namespace cc | 80 } // namespace cc |
83 | 81 |
OLD | NEW |