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

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

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: Created 4 years 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/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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 DCHECK(image_map_.empty()); 259 DCHECK(image_map_.empty());
260 260
261 gfx::Rect bounds = rtree_.GetBounds(); 261 gfx::Rect bounds = rtree_.GetBounds();
262 DiscardableImageMap::ScopedMetadataGenerator generator( 262 DiscardableImageMap::ScopedMetadataGenerator generator(
263 &image_map_, gfx::Size(bounds.right(), bounds.bottom())); 263 &image_map_, gfx::Size(bounds.right(), bounds.bottom()));
264 Raster(generator.canvas(), nullptr, gfx::Rect(), 1.f); 264 Raster(generator.canvas(), nullptr, gfx::Rect(), 1.f);
265 } 265 }
266 266
267 void DisplayItemList::GetDiscardableImagesInRect( 267 void DisplayItemList::GetDiscardableImagesInRect(
268 const gfx::Rect& rect, 268 const gfx::Rect& rect,
269 const gfx::SizeF& raster_scales, 269 float raster_scale,
270 std::vector<DrawImage>* images) { 270 std::vector<DrawImage>* images) {
271 image_map_.GetDiscardableImagesInRect(rect, raster_scales, images); 271 image_map_.GetDiscardableImagesInRect(rect, raster_scale, images);
272 } 272 }
273 273
274 Region DisplayItemList::GetRegionForImage(uint32_t image_id) { 274 Region DisplayItemList::GetRegionForImage(uint32_t image_id) {
275 return image_map_.GetRegionForImage(image_id); 275 return image_map_.GetRegionForImage(image_id);
276 } 276 }
277 277
278 } // namespace cc 278 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698