| Index: cc/resources/drawing_display_item.cc
|
| diff --git a/cc/resources/drawing_display_item.cc b/cc/resources/drawing_display_item.cc
|
| index f8d3c62ce6f1c909954dee1f338ea5878250ab4e..e5610caede39472c252faec08073d0d37d36084f 100644
|
| --- a/cc/resources/drawing_display_item.cc
|
| +++ b/cc/resources/drawing_display_item.cc
|
| @@ -31,6 +31,18 @@ void DrawingDisplayItem::Raster(SkCanvas* canvas,
|
| canvas->restore();
|
| }
|
|
|
| +void DrawingDisplayItem::RasterForTracing(SkCanvas* canvas) const {
|
| + canvas->save();
|
| + canvas->translate(location_.x(), location_.y());
|
| + // The picture debugger in about:tracing doesn't drill down into |drawPicture|
|
| + // operations. Calling |playback()| rather than |drawPicture()| causes the
|
| + // skia operations in |picture_| to appear individually in the picture
|
| + // produced for tracing rather than being hidden inside a drawPicture
|
| + // operation.
|
| + picture_->playback(canvas);
|
| + canvas->restore();
|
| +}
|
| +
|
| bool DrawingDisplayItem::IsSuitableForGpuRasterization() const {
|
| return picture_->suitableForGpuRasterization(NULL);
|
| }
|
|
|