| Index: cc/resources/picture_layer_tiling.cc
|
| diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
|
| index b302873c1a33cf311ab4d0e027d32ed2ea4b8568..3ae7be486d7fa2c5c7fcfd79a511c052b15c55c3 100644
|
| --- a/cc/resources/picture_layer_tiling.cc
|
| +++ b/cc/resources/picture_layer_tiling.cc
|
| @@ -7,6 +7,7 @@
|
| #include <algorithm>
|
| #include <cmath>
|
| #include <limits>
|
| +#include <set>
|
|
|
| #include "base/debug/trace_event.h"
|
| #include "base/debug/trace_event_argument.h"
|
| @@ -684,6 +685,12 @@ void PictureLayerTiling::DidBecomeActive() {
|
| }
|
| }
|
|
|
| +void PictureLayerTiling::GetAllTilesForTracing(
|
| + std::set<const Tile*>* tiles) const {
|
| + for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it)
|
| + tiles->insert(it->second.get());
|
| +}
|
| +
|
| void PictureLayerTiling::AsValueInto(base::debug::TracedValue* state) const {
|
| state->SetInteger("num_tiles", tiles_.size());
|
| state->SetDouble("content_scale", contents_scale_);
|
|
|