Chromium Code Reviews| Index: cc/paint/display_item_list.cc |
| diff --git a/cc/paint/display_item_list.cc b/cc/paint/display_item_list.cc |
| index 4745dcef193743a10c1df5882e773da4e853b026..830b3fbb15ffed9066378c28404c6e5b35aaf8d4 100644 |
| --- a/cc/paint/display_item_list.cc |
| +++ b/cc/paint/display_item_list.cc |
| @@ -102,12 +102,7 @@ NOINLINE DISABLE_CFI_PERF void RasterItem(const DisplayItem& base_item, |
| // SkPicture always does a wrapping save/restore on the canvas, so it is |
| // not necessary here. |
| - if (callback) { |
| - item.picture->playback(canvas, callback); |
| - } else { |
| - // TODO(enne): switch this to playback once PaintRecord is real. |
| - canvas->drawPicture(ToSkPicture(item.picture.get())); |
| - } |
| + item.picture->playback(canvas, callback); |
|
vmpstr
2017/03/22 21:00:11
IIRC this was there as a performance optimization,
enne (OOO)
2017/03/23 16:43:12
I think it does when the SkCanvas is recording or
|
| break; |
| } |
| case DisplayItem::FLOAT_CLIP: { |
| @@ -407,7 +402,7 @@ DisplayItemList::CreateTracedValue(bool include_items) const { |
| state->EndArray(); |
| std::string b64_picture; |
| - PictureDebugUtil::SerializeAsBase64(ToSkPicture(item.picture.get()), |
| + PictureDebugUtil::SerializeAsBase64(ToSkPicture(item.picture).get(), |
| &b64_picture); |
| state->SetString("skp64", b64_picture); |
| state->EndDictionary(); |