Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: cc/paint/display_item_list.cc

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: addressed comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 553
554 void DisplayItemList::GetDiscardableImagesInRect( 554 void DisplayItemList::GetDiscardableImagesInRect(
555 const gfx::Rect& rect, 555 const gfx::Rect& rect,
556 float contents_scale, 556 float contents_scale,
557 const gfx::ColorSpace& target_color_space, 557 const gfx::ColorSpace& target_color_space,
558 std::vector<DrawImage>* images) { 558 std::vector<DrawImage>* images) {
559 image_map_.GetDiscardableImagesInRect(rect, contents_scale, 559 image_map_.GetDiscardableImagesInRect(rect, contents_scale,
560 target_color_space, images); 560 target_color_space, images);
561 } 561 }
562 562
563 gfx::Rect DisplayItemList::GetRectForImage(ImageId image_id) const { 563 gfx::Rect DisplayItemList::GetRectForImage(PaintImage::Id image_id) const {
564 return image_map_.GetRectForImage(image_id); 564 return image_map_.GetRectForImage(image_id);
565 } 565 }
566 566
567 } // namespace cc 567 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698