Commit 7c2f9407 authored by jbroman's avatar jbroman Committed by Commit bot

cc: Remove allocation of unused SkPictureRecorder.

The recorder is only used if use_cached_picture_, in which case another one is
allocated immediately afterward anyhow.

Review URL: https://codereview.chromium.org/1135813003

Cr-Commit-Position: refs/heads/master@{#328996}
parent 11d7eac0
...@@ -40,7 +40,6 @@ DisplayItemList::DisplayItemList(gfx::Rect layer_rect, ...@@ -40,7 +40,6 @@ DisplayItemList::DisplayItemList(gfx::Rect layer_rect,
bool use_cached_picture, bool use_cached_picture,
bool retain_individual_display_items) bool retain_individual_display_items)
: items_(LargestDisplayItemSize(), kDefaultNumDisplayItemsToReserve), : items_(LargestDisplayItemSize(), kDefaultNumDisplayItemsToReserve),
recorder_(new SkPictureRecorder()),
use_cached_picture_(use_cached_picture), use_cached_picture_(use_cached_picture),
retain_individual_display_items_(retain_individual_display_items), retain_individual_display_items_(retain_individual_display_items),
layer_rect_(layer_rect), layer_rect_(layer_rect),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment