| Index: cc/layers/picture_layer.cc
|
| diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
|
| index befef49a7e0047c340973385aef1964cec94b665..7573471793aee200a35a853b880d15f5aa29b129 100644
|
| --- a/cc/layers/picture_layer.cc
|
| +++ b/cc/layers/picture_layer.cc
|
| @@ -68,12 +68,11 @@ void PictureLayer::SetLayerTreeHost(LayerTreeHost* host) {
|
| }
|
| }
|
|
|
| -void PictureLayer::SetNeedsDisplayRect(const gfx::RectF& layer_rect) {
|
| - gfx::Rect rect = gfx::ToEnclosedRect(layer_rect);
|
| - if (!rect.IsEmpty()) {
|
| +void PictureLayer::SetNeedsDisplayRect(const gfx::Rect& layer_rect) {
|
| + if (!layer_rect.IsEmpty()) {
|
| // Clamp invalidation to the layer bounds.
|
| - rect.Intersect(gfx::Rect(bounds()));
|
| - pending_invalidation_.Union(rect);
|
| + pending_invalidation_.Union(
|
| + gfx::IntersectRects(layer_rect, gfx::Rect(bounds())));
|
| }
|
| Layer::SetNeedsDisplayRect(layer_rect);
|
| }
|
|
|