| 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/paint/display_item_list.h" | 5 #include "cc/paint/display_item_list.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 534 |
| 535 void DisplayItemList::GetDiscardableImagesInRect( | 535 void DisplayItemList::GetDiscardableImagesInRect( |
| 536 const gfx::Rect& rect, | 536 const gfx::Rect& rect, |
| 537 float contents_scale, | 537 float contents_scale, |
| 538 const gfx::ColorSpace& target_color_space, | 538 const gfx::ColorSpace& target_color_space, |
| 539 std::vector<DrawImage>* images) { | 539 std::vector<DrawImage>* images) { |
| 540 image_map_.GetDiscardableImagesInRect(rect, contents_scale, | 540 image_map_.GetDiscardableImagesInRect(rect, contents_scale, |
| 541 target_color_space, images); | 541 target_color_space, images); |
| 542 } | 542 } |
| 543 | 543 |
| 544 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { | 544 gfx::Rect DisplayItemList::GetRectForImage(PaintImage::Id image_id) const { |
| 545 return image_map_.GetRectForImage(image_id); | 545 return image_map_.GetRectForImage(image_id); |
| 546 } | 546 } |
| 547 | 547 |
| 548 } // namespace cc | 548 } // namespace cc |
| OLD | NEW |