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

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

Issue 1279843004: cc: Plumb more details about pixel refs to tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | cc/playback/display_list_raster_source.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 <string> 7 #include <string>
8 8
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 void DisplayItemList::GatherPixelRefs(const gfx::Size& grid_cell_size) { 288 void DisplayItemList::GatherPixelRefs(const gfx::Size& grid_cell_size) {
289 DCHECK(ProcessAppendedItemsCalled()); 289 DCHECK(ProcessAppendedItemsCalled());
290 // This should be only called once, and only after CreateAndCacheSkPicture. 290 // This should be only called once, and only after CreateAndCacheSkPicture.
291 DCHECK(picture_); 291 DCHECK(picture_);
292 DCHECK(!pixel_refs_); 292 DCHECK(!pixel_refs_);
293 pixel_refs_ = make_scoped_ptr(new PixelRefMap(grid_cell_size)); 293 pixel_refs_ = make_scoped_ptr(new PixelRefMap(grid_cell_size));
294 if (!picture_->willPlayBackBitmaps()) 294 if (!picture_->willPlayBackBitmaps())
295 return; 295 return;
296 296
297 pixel_refs_->GatherPixelRefsFromPicture(picture_.get()); 297 pixel_refs_->GatherPixelRefsFromPicture(picture_.get(), layer_rect_);
298 } 298 }
299 299
300 void* DisplayItemList::GetSidecar(DisplayItem* display_item) { 300 void* DisplayItemList::GetSidecar(DisplayItem* display_item) {
301 return items_.GetSidecar(display_item); 301 return items_.GetSidecar(display_item);
302 } 302 }
303 303
304 } // namespace cc 304 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/playback/display_list_raster_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698