Chromium Code Reviews| Index: cc/layers/image_layer.cc |
| diff --git a/cc/layers/image_layer.cc b/cc/layers/image_layer.cc |
| index e02fc62dfe50082d0ca3fd08c206b7683561e66a..8ba1908131d2c2145da17d00b2346c912112ec2f 100644 |
| --- a/cc/layers/image_layer.cc |
| +++ b/cc/layers/image_layer.cc |
| @@ -43,11 +43,10 @@ void ImageLayer::SetTexturePriorities(const PriorityCalculator& priority_calc) { |
| bool ImageLayer::Update(ResourceUpdateQueue* queue, |
| const OcclusionTracker* occlusion) { |
| CreateUpdaterIfNeeded(); |
| - if (needs_display_) { |
| - updater_->set_bitmap(bitmap_); |
| + if (!updater_->UsingBitmap(bitmap_)) { |
|
enne (OOO)
2013/07/30 20:01:27
The reason this code was broken before was that Im
|
| + updater_->SetBitmap(bitmap_); |
| UpdateTileSizeAndTilingOption(); |
| InvalidateContentRect(gfx::Rect(content_bounds())); |
| - needs_display_ = false; |
| } |
| return TiledLayer::Update(queue, occlusion); |
| } |