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

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

Issue 2629233002: cc: Remove separate x/y raster scales. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « cc/playback/display_item_list.h ('k') | cc/playback/draw_image.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/playback/display_item_list.h" 5 #include "cc/playback/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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 DCHECK(image_map_.empty()); 301 DCHECK(image_map_.empty());
302 302
303 gfx::Rect bounds = rtree_.GetBounds(); 303 gfx::Rect bounds = rtree_.GetBounds();
304 DiscardableImageMap::ScopedMetadataGenerator generator( 304 DiscardableImageMap::ScopedMetadataGenerator generator(
305 &image_map_, gfx::Size(bounds.right(), bounds.bottom())); 305 &image_map_, gfx::Size(bounds.right(), bounds.bottom()));
306 Raster(generator.canvas(), nullptr, gfx::Rect(), 1.f); 306 Raster(generator.canvas(), nullptr, gfx::Rect(), 1.f);
307 } 307 }
308 308
309 void DisplayItemList::GetDiscardableImagesInRect( 309 void DisplayItemList::GetDiscardableImagesInRect(
310 const gfx::Rect& rect, 310 const gfx::Rect& rect,
311 const gfx::SizeF& raster_scales, 311 float contents_scale,
312 std::vector<DrawImage>* images) { 312 std::vector<DrawImage>* images) {
313 image_map_.GetDiscardableImagesInRect(rect, raster_scales, images); 313 image_map_.GetDiscardableImagesInRect(rect, contents_scale, images);
314 } 314 }
315 315
316 } // namespace cc 316 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/display_item_list.h ('k') | cc/playback/draw_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698