| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/playback/display_item_list.h" | 5 #include "cc/playback/display_item_list.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 gfx::Rect(layer_rect_.right(), layer_rect_.bottom()), 1.f); | 337 gfx::Rect(layer_rect_.right(), layer_rect_.bottom()), 1.f); |
| 338 } | 338 } |
| 339 | 339 |
| 340 void DisplayItemList::GetDiscardableImagesInRect( | 340 void DisplayItemList::GetDiscardableImagesInRect( |
| 341 const gfx::Rect& rect, | 341 const gfx::Rect& rect, |
| 342 float raster_scale, | 342 float raster_scale, |
| 343 std::vector<DrawImage>* images) { | 343 std::vector<DrawImage>* images) { |
| 344 image_map_.GetDiscardableImagesInRect(rect, raster_scale, images); | 344 image_map_.GetDiscardableImagesInRect(rect, raster_scale, images); |
| 345 } | 345 } |
| 346 | 346 |
| 347 bool DisplayItemList::MayHaveDiscardableImages() const { |
| 348 return !image_map_.empty(); |
| 349 } |
| 350 |
| 347 } // namespace cc | 351 } // namespace cc |
| OLD | NEW |