comparison Renderer/Engine/task/DrawSpan.cc @ 838:41302b72c895

Draw Span Task -> Task Array
author Yutaka_Kinjyo
date Fri, 28 May 2010 01:47:42 +0900
parents 496a8159e840
children 1e3b67117ad9
comparison
equal deleted inserted replaced
837:4318c1f750d1 838:41302b72c895
460 460
461 461
462 static int 462 static int
463 run(SchedTask *smanager, void *rbuf, void *wbuf) 463 run(SchedTask *smanager, void *rbuf, void *wbuf)
464 { 464 {
465
466
467 if ((int)smanager->get_param(5) == 0) {
468
469 int rangex_start = (long)smanager->get_param(2);
470 int rangex_end = (long)smanager->get_param(3);
471
472 int rangex = rangex_end - rangex_start + 1;
473 int rangey = (long)smanager->get_param(4);
474
475 linebuf_init(smanager, rangex, rangey, 0);
476
477 return 0;
478
479 }
480
481
465 G g0; 482 G g0;
466 Gptr g = &g0; 483 Gptr g = &g0;
467 484
468 SpanPackPtr spack = (SpanPackPtr)smanager->get_input(0); 485 SpanPackPtr spack = (SpanPackPtr)smanager->get_input(0);
469 SpanPackPtr next_spack = (SpanPackPtr)smanager->allocate(sizeof(SpanPack)); 486 SpanPackPtr next_spack = (SpanPackPtr)smanager->allocate(sizeof(SpanPack));