Commit be2afae7 authored by vmiura's avatar vmiura Committed by Commit bot

cc: Revert to using SkMultiPictureDraw in GpuRasterizer::RasterizeSource().

Using picture->playback() was causing some corrupted tiles
however it seemed fixed.  I was able to reproduce the bug on
about:tracing, so reverting back to using SkMultiPictureDraw until
fixed.

TBR=vmpstr@chromium.org
NOTRY=true
BUG=454500

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

Cr-Commit-Position: refs/heads/master@{#316344}
parent a965b792
...@@ -120,7 +120,10 @@ void GpuRasterizer::RasterizeSource( ...@@ -120,7 +120,10 @@ void GpuRasterizer::RasterizeSource(
write_lock->InitSkSurface(use_worker_context, use_distance_field_text, write_lock->InitSkSurface(use_worker_context, use_distance_field_text,
raster_source->CanUseLCDText(), raster_source->CanUseLCDText(),
msaa_sample_count_); msaa_sample_count_);
picture->playback(write_lock->sk_surface()->getCanvas(), nullptr); SkMultiPictureDraw multi_picture_draw;
multi_picture_draw.add(write_lock->sk_surface()->getCanvas(),
picture.get());
multi_picture_draw.draw(false);
write_lock->ReleaseSkSurface(); write_lock->ReleaseSkSurface();
} }
} }
......
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