| 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/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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|