Painter: Time inspectors

git-svn-id: svn://ultimatepp.org/upp/trunk@14547 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-06-04 16:03:11 +00:00
parent d8b023f48b
commit b6a82ecca4
2 changed files with 2 additions and 1 deletions

View file

@ -201,6 +201,7 @@ struct PainterImageSpan : SpanSource, PainterImageSpanData {
virtual void Get(RGBA *span, int x, int y, unsigned len)
{
PAINTER_TIMING("ImageSpan::Get");
interpolator.Begin(x, y, len);
fixed = hstyle && vstyle;
if(hstyle + vstyle == 0 && fast) {
@ -237,7 +238,6 @@ struct PainterImageSpan : SpanSource, PainterImageSpanData {
else {
RGBAV v;
v.Set(0);
// v.Set(256 * 256 / 2);
h.x &= 255;
h.y &= 255;
Point u = -h + 256;

View file

@ -313,6 +313,7 @@ Buffer<ClippingLine> BufferPainter::RenderPath(double width, Event<One<SpanSourc
if(width != ONPATH) {
int n = rasterizer.MaxY() - rasterizer.MinY();
if(n >= 0) {
PAINTER_TIMING("RenderPath2 Fill");
if(doco && n > 6) {
CoWork co;
co * [&] { fill(&co); };