Commit d9608430 authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Add more trace events in RasterDecoder

Bug: 985024
Change-Id: Iace7bcf664ca59cadd903a49b181f0e718f7df27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717998
Auto-Submit: Peng Huang <penghuang@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681822}
parent f1ed6a89
......@@ -2363,12 +2363,15 @@ void RasterDecoderImpl::DoEndRasterCHROMIUM() {
raster_canvas_ = nullptr;
if (use_ddl_) {
TRACE_EVENT0("gpu",
"RasterDecoderImpl::DoEndRasterCHROMIUM::DetachAndDrawDDL");
auto ddl = recorder_->detach();
recorder_ = nullptr;
sk_surface_->draw(ddl.get());
}
{
TRACE_EVENT0("gpu", "RasterDecoderImpl::DoEndRasterCHROMIUM::Flush");
// This is a slow operation since skia will execute the GPU work for the
// complete tile. Make sure the progress reporter is notified to avoid
// hangs.
......
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