| Index: cc/resources/picture_pile_impl.cc
|
| diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
|
| index 2e771faca8071bf58e45cb03493d7192afaaf30c..766e6d3cbf28e726bc057e6a3e07f1efc92edee9 100644
|
| --- a/cc/resources/picture_pile_impl.cc
|
| +++ b/cc/resources/picture_pile_impl.cc
|
| @@ -376,10 +376,11 @@ void PicturePileImpl::AnalyzeInRect(
|
| analysis->has_text = canvas.HasText();
|
| }
|
|
|
| -PicturePileImpl::Analysis::Analysis()
|
| - : is_solid_color(false),
|
| - has_text(false) {
|
| -}
|
| +// Since there are situations when we can skip analysis, the variables have to
|
| +// be set to their safest values. That is, we have to assume that the tile is
|
| +// not solid color. As well, we have to assume that the tile has text so we
|
| +// don't early out incorrectly.
|
| +PicturePileImpl::Analysis::Analysis() : is_solid_color(false), has_text(true) {}
|
|
|
| PicturePileImpl::Analysis::~Analysis() {
|
| }
|
|
|