W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2011

[Bug 14499] Need ability to reset Canvas clipping region without resetting all other Canvas state

From: <bugzilla@jessica.w3.org>
Date: Tue, 25 Oct 2011 03:25:54 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RIXeE-0002j5-Rz@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14499

--- Comment #3 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-10-25 03:25:54 UTC ---
If they're all setting the same font, just restructure your code to not set the
font each time. Doing it like that is really inefficient, regardless of the
clipping region thing.

If they're all setting different fonts then you're screwed either way.

In any case, do you have any data showing that the performance problem is in
setting the font? I would have imagined that if you're drawing 7000 shapes each
with their own text, the drawing of the text would vastly outweigh any cost of
setting the font, making this a non-issue.

It's hard to tell exactly what the right solution is here without a better
understanding of the problem. Can you provide a link to the page that you think
demonstrates what is inefficient about the current API?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 25 October 2011 03:26:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC