/irc-logs / w3c / #webapps / 2010-12-17 / end
Options:
- # Session Start: Fri Dec 17 00:00:00 2010
- # Session Ident: #webapps
- # [00:41] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
- # [00:43] * Joins: homata (homata@58.158.182.50)
- # [00:46] * Joins: dveditz (dveditz@63.245.220.240)
- # [00:55] * Joins: sicking (chatzilla@63.245.220.240)
- # [01:00] * Quits: smaug_ (chatzilla@63.245.220.224) (Ping timeout)
- # [01:15] * Joins: smaug_ (chatzilla@63.245.220.224)
- # [01:17] * Quits: sicking (chatzilla@63.245.220.240) (Ping timeout)
- # [01:51] * Joins: Tomsk (qw3birc@128.30.52.28)
- # [02:02] * Quits: Tomsk (qw3birc@128.30.52.28) (Ping timeout)
- # [02:03] * Joins: homata_ (homata@58.158.182.50)
- # [02:04] * Quits: homata (homata@58.158.182.50) (Ping timeout)
- # [02:06] * Quits: smaug_ (chatzilla@63.245.220.224) (Ping timeout)
- # [02:07] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
- # [02:07] * Quits: davidb (davidb@63.245.220.240) (Quit: davidb)
- # [02:09] * Joins: dveditz (dveditz@63.245.220.240)
- # [02:12] * Quits: dveditz (dveditz@63.245.220.240) (Ping timeout)
- # [02:20] * Joins: homata (homata@58.158.182.50)
- # [02:21] * Quits: homata_ (homata@58.158.182.50) (Ping timeout)
- # [02:22] * Joins: dveditz (dveditz@63.245.220.240)
- # [02:43] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
- # [03:01] * Joins: homata_ (homata@58.158.182.50)
- # [03:02] * Quits: homata (homata@58.158.182.50) (Ping timeout)
- # [03:52] * Joins: Sirisian (Sirisian@141.218.208.86)
- # [04:16] <Sirisian> Hixie, has there been any spec talk about adding a getContext() method to Image. That would allow getImageData for the Image class along with the whole drawing API. Right now you have to render the image to a temporary canvas before you can get the imageData. Even the w3c example (you probably wrote) could be simplified a lot. http://www.w3.org/TR/2dcontext/#pixel-manipulation
- # [04:25] * Joins: MikeSmith_ (MikeSmith@114.48.26.76)
- # [04:27] * Quits: MikeSmith (MikeSmith@114.48.182.173) (Ping timeout)
- # [04:27] * MikeSmith_ is now known as MikeSmith
- # [04:27] <Hixie> Sirisian: it doesn't simplify that much, does it? it's just two less lines of code
- # [04:27] <Hixie> one to create the canvas and one to draw the image into it
- # [04:30] * Joins: aroben (aroben@24.213.129.137)
- # [04:47] <Sirisian> Hixie, Well you don't need the canvas then to be the size of the image.
- # [05:24] <Sirisian> No reason not to add it really.
- # [05:33] <Sirisian> Hixie, http://www.mail-archive.com/whatwg@lists.whatwg.org/msg10354.html
- # [05:33] <Sirisian> huh someone already made the point I wanted on another subject
- # [05:33] <Sirisian> wow back in 2008
- # [05:34] <Sirisian> putImageData doesn't even have a way to ignore copying transparent pixels :\
- # [05:35] <Sirisian> drawImage(ImageData,....) would be amazing. Probably should have been added at the beginning along with the suggestion I said before. Having to make extra canvas objects to do stuff is a hack and slow as hell
- # [05:35] <Sirisian> the API loves to copy stuff it seems.
- # [05:35] <Sirisian> makes it hard for doing complicated games
- # [05:39] <Sirisian> hmm http://www.w3.org/Bugs/Public/show_bug.cgi?id=11517
- # [05:39] <Sirisian> same idea
- # [05:41] <Sirisian> Hixie, how hard is it for you to make "quick" changes to the API? Like if you quickly added:
- # [05:41] <Sirisian> void drawImage(in ImageData image, in double dx, in double dy, in optional double dw, in double dh);
- # [05:41] <Sirisian> void drawImage(in ImageData image, in double sx, in double sy, in double sw, in double sh, in double dx, in double dy, in double dw, in double dh);
- # [05:41] <Sirisian> Would implementors complain?
- # [05:45] <Sirisian> Into this page I mean: http://www.w3.org/TR/2dcontext/#conformance-requirements
- # [05:47] <Sirisian> Oh to make it more clear. Imagine you're changing the pixel data of an image a lot and just need to a draw a portion of it, but don't want to overwrite the current canvas completely. Those two functions would allow that.
- # [05:56] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11565
- # [05:56] <Sirisian> ^ there is the suggestion
- # [06:01] * Quits: aroben (aroben@24.213.129.137) (Quit: aroben)
- # [06:02] <Sirisian> What specification contains "Image" as in the Javascript object?
- # [06:18] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11566
- # [06:18] <Sirisian> there found it
- # [06:40] <Hixie> implementors wouldn't complain, they'd probably implement it instead of something else though
- # [06:41] <Hixie> and it's not clear to me that this is especially compelling compared to the other stuff in the spec :-)
- # [06:41] <Hixie> Image and drawImage() are both specced in http://whatwg.org/html
- # [07:09] * Quits: homata_ (homata@58.158.182.50) (Ping timeout)
- # [07:15] <Sirisian> Well it's more important because it would be nice for game programming.
- # [07:15] <Sirisian> (rendering to an image allows easier caching)
- # [07:34] * Joins: sicking (chatzilla@98.210.155.80)
- # [07:35] * Quits: sicking (chatzilla@98.210.155.80) (Client exited)
- # [08:10] * Joins: smaug_ (chatzilla@209.118.182.194)
- # [08:18] * Joins: kennyluck (kennyluck@128.30.52.169)
- # [08:18] * Quits: kennyluck (kennyluck@128.30.52.169) (Client exited)
- # [08:19] * Joins: kennyluck (kennyluck@128.30.52.169)
- # [08:36] * Joins: homata (homata@58.158.182.50)
- # [08:37] * Quits: homata (homata@58.158.182.50) (Quit: Leaving...)
- # [08:37] * Joins: homata (homata@58.158.182.50)
- # [08:39] * Quits: smaug_ (chatzilla@209.118.182.194) (Ping timeout)
- # [08:57] <Hixie> Sirisian: just render to a canvas and treat it like an image
- # [08:58] <Sirisian> A hack
- # [08:58] <Sirisian> Also do you sleep?
- # [08:58] <Sirisian> Hixie, doesn't that have overhead?
- # [08:59] <Sirisian> I want to add features to canvas/javascript that allow a person to elliminate unecessary copying.
- # [08:59] <Sirisian> eliminate*
- # [09:00] <Hixie> try it and profile it... before we add optimisation features in the spec, we need proof that it's slow :-)
- # [09:01] <Sirisian> touche
- # [09:01] <Sirisian> but it does make code simpler
- # [09:03] <Hixie> if it makes it simpler enough to matter, file a bug or send an e-mail showing the difference
- # [09:03] <Hixie> sometimes people will find another way to simplify it showing that it's not necessary to add a new feature
- # [09:03] <Hixie> and sometimes they'll agree and we'll add the new feature :-)
- # [09:04] <Sirisian> I did
- # [09:04] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11566
- # [09:04] * Sirisian plays the waiting game
- # [09:05] <Sirisian> I should show the difference, but I assumed people have seen the ImageToImageData function a hundred times
- # [09:08] * Joins: arve (arve@213.236.208.22)
- # [09:18] <Hixie> cool, thanks
- # [09:19] <Hixie> it's just a matter of time until i get to it
- # [09:19] <Hixie> you can track how much feedback i have outstanding and what progress i'm making here: http://www.whatwg.org/issues/data.html
- # [09:19] <Hixie> (give it time to draw the chart, it's a lot of data)
- # [09:19] <Hixie> (and my script is nrather naive)
- # [09:20] <Sirisian> heh cool
- # [09:44] <Sirisian> Well I gtg. Thanks for listening :)
- # [09:44] * Quits: Sirisian (Sirisian@141.218.208.86) (Quit: Leaving)
- # [09:50] * Quits: kennyluck (kennyluck@128.30.52.169) (Quit: kennyluck)
- # [10:23] * Quits: homata (homata@58.158.182.50) (Ping timeout)
- # [10:23] * Joins: homata (homata@58.158.182.50)
- # [10:25] * Joins: MikeSmith_ (MikeSmith@111.188.65.130)
- # [10:27] * Quits: MikeSmith (MikeSmith@114.48.26.76) (Ping timeout)
- # [10:27] * MikeSmith_ is now known as MikeSmith
- # [10:37] * Joins: homata_ (homata@58.158.182.50)
- # [10:40] * Quits: homata (homata@58.158.182.50) (Ping timeout)
- # [11:18] * Quits: Lachy (Lachlan@84.215.59.50) (Quit: This computer has gone to sleep)
- # [11:36] * Joins: Lachy (Lachlan@213.236.208.22)
- # [11:36] * Quits: Lachy (Lachlan@213.236.208.22) (Client exited)
- # [11:36] * Joins: Lachy (Lachlan@213.236.208.22)
- # [11:53] * Quits: homata_ (homata@58.158.182.50) (Quit: Leaving...)
- # [12:59] * Quits: arve (arve@213.236.208.22) (Quit: Ex-Chat)
- # [13:04] * Joins: arve (arve@213.236.208.22)
- # [13:09] * Joins: kennyluck (kennyluck@128.30.52.169)
- # [14:51] * Quits: arve (arve@213.236.208.22) (Quit: Ex-Chat)
- # [14:55] * Joins: miketaylr (miketaylr@76.15.238.5)
- # [15:00] * Joins: ArtB (ArtB@192.100.124.220)
- # [15:12] * Quits: karl (karlcow@128.30.54.58) (Ping timeout)
- # [15:18] * Joins: karl (karlcow@128.30.54.58)
- # [15:48] * Joins: aroben (aroben@24.213.129.137)
- # [15:57] * Joins: smaug_ (chatzilla@209.118.182.194)
- # [16:07] * Quits: ArtB (ArtB@192.100.124.220) (Ping timeout)
- # [16:15] * Joins: ArtB (ArtB@192.100.124.218)
- # [16:18] * Joins: Marcos (Marcos@213.236.208.22)
- # [16:25] * Joins: MikeSmith_ (MikeSmith@114.48.5.160)
- # [16:27] * Quits: MikeSmith (MikeSmith@111.188.65.130) (Ping timeout)
- # [16:27] * MikeSmith_ is now known as MikeSmith
- # [17:03] * Quits: Marcos (Marcos@213.236.208.22) (Quit: Marcos)
- # [17:23] * Quits: smaug_ (chatzilla@209.118.182.194) (Ping timeout)
- # [17:52] * Quits: aroben (aroben@24.213.129.137) (Ping timeout)
- # [18:06] * Joins: aroben (aroben@24.213.129.137)
- # [18:31] * Quits: ArtB (ArtB@192.100.124.218) (Quit: Leaving.)
- # [18:33] * Quits: aroben (aroben@24.213.129.137) (Connection reset by peer)
- # [18:35] * Joins: aroben (aroben@24.213.129.137)
- # [18:35] * Quits: aroben (aroben@24.213.129.137) (Quit: aroben)
- # [18:56] * Joins: smaug_ (chatzilla@63.245.220.224)
- # [19:30] * Joins: sicking (chatzilla@63.245.220.240)
- # [19:45] * Quits: miketaylr (miketaylr@76.15.238.5) (Quit: miketaylr)
- # [20:04] * Quits: sicking (chatzilla@63.245.220.240) (Ping timeout)
- # [20:26] * Joins: dveditz (dveditz@63.249.106.47)
- # [20:30] * Quits: Lachy (Lachlan@213.236.208.22) (Quit: This computer has gone to sleep)
- # [20:48] * Quits: Lawouach (sylvain@82.229.61.197) (Quit: Ex-Chat)
- # [20:53] * Joins: Lawouach (sylvain@82.229.61.197)
- # [22:25] * Joins: MikeSmith_ (MikeSmith@114.48.43.203)
- # [22:27] * Quits: MikeSmith (MikeSmith@114.48.5.160) (Ping timeout)
- # [22:27] * MikeSmith_ is now known as MikeSmith
- # [23:22] * Joins: arve (arve@46.9.62.193)
- # [23:28] * Joins: sicking (chatzilla@63.245.220.240)
- # [23:43] * Quits: karl (karlcow@128.30.54.58) (Quit: This computer has gone to sleep)
- # Session Close: Sat Dec 18 00:00:00 2010
The end :)