Index: cc/trees/layer_tree_host_impl.cc |
=================================================================== |
--- cc/trees/layer_tree_host_impl.cc (revision 253669) |
+++ cc/trees/layer_tree_host_impl.cc (working copy) |
@@ -1174,8 +1174,9 @@ |
global_tile_state_.hard_memory_limit_in_bytes = |
policy.bytes_limit_when_visible; |
global_tile_state_.soft_memory_limit_in_bytes = |
- global_tile_state_.hard_memory_limit_in_bytes * |
- settings_.max_memory_for_prepaint_percentage / 100; |
+ (static_cast<int64>(global_tile_state_.hard_memory_limit_in_bytes) * |
+ settings_.max_memory_for_prepaint_percentage) / |
+ 100; |
} |
// Unused limit is calculated from soft-limit, as hard-limit may |
// be very high and shouldn't typically be exceeded. |