[whatwg] Need clarification on DOM exceptions thrown by canvas 2D drawImage

Glenn Maynard glenn at zewt.org
Tue Aug 9 09:40:30 PDT 2011


On Tue, Aug 9, 2011 at 11:56 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 8/9/11 11:29 AM, Justin Novosad wrote:
>
>> I second that. And in support of the spec, let me just say that the
>> clamp-to-edge is essential for many existing canvas-based games that
>> use large images as sprite maps.  Without clamping to the edge of the
>> source rectangle
>>
>
> We're talking about clamping to the edge of the backing store, not clamping
> to the edge of the source rectangle, unless I missed something.  There's no
> clamping to the edge of the source rectangle specified in the spec, as far
> as I can tell.
>

It sounds like it would make fast GPU-accelerated blitting difficult, even
in fairly simple cases.

-- 
Glenn Maynard



More information about the whatwg mailing list