[Webkit-unassigned] [Bug 72294] Add occludes() test to Region

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 14 15:55:19 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=72294





--- Comment #9 from Dana Jansens <danakj at chromium.org>  2011-11-14 15:55:19 PST ---
(In reply to comment #8)
> (In reply to comment #7)
> > misclick..
> > 
> > "... to compute."
> 
> That could be easily fixed by making the segment and span vectors have an inline capacity - then it'd just be stack allocation:
> 
> 
>         // FIXME: These vectors should have inline sizes. Figure out a good optimal value.
>         Vector<int> m_segments;
>         Vector<Span> m_spans;

>From reading the code I don't see what you are suggesting. But please correct me where I am wrong.. If a Vector is given a size, then it will call VectorBufferBase::allocateBuffer() which calls fastMalloc() which calls malloc(). Where is there a stack allocation?

Regarding point 1), I see nothing in Region::Shape::shapeOperation() that guarantees a single rect output for the intersection in the occludes() == true case. It simply adds segments as it goes along, there is nothing more global to consider pruning/combining segments/spans there. So, as I see it, the same test done in occludes() would need to be done on the result of the intersection() - the only change would be knowing that all segments intersect the query rect.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list