Exit out of DrawGradient that uses PolyPolygon much faster
There are two DrawGradient(...) functions in OutputDevice. One uses a PolyPolygon, the other uses a Rectangle. The Rectangle version exits out a lot faster, the PolyPolygon one seems to try to getting clipping regions and a Graphics instance first which is entirely unnecessary if the drawing mode is DRAWMODE_NOGRADIENT! Therefore, I'm bailing out of this function much faster, bring the two functions into line with each other. Change-Id: I882862ab82a93c2c9dfd5fc86f2507926d28aaea
Showing
Please
register
or
sign in
to comment