/irc-logs / w3c / #webapps / 2010-12-17 / end

Options:

  1. # Session Start: Fri Dec 17 00:00:00 2010
  2. # Session Ident: #webapps
  3. # [00:41] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
  4. # [00:43] * Joins: homata (homata@58.158.182.50)
  5. # [00:46] * Joins: dveditz (dveditz@63.245.220.240)
  6. # [00:55] * Joins: sicking (chatzilla@63.245.220.240)
  7. # [01:00] * Quits: smaug_ (chatzilla@63.245.220.224) (Ping timeout)
  8. # [01:15] * Joins: smaug_ (chatzilla@63.245.220.224)
  9. # [01:17] * Quits: sicking (chatzilla@63.245.220.240) (Ping timeout)
  10. # [01:51] * Joins: Tomsk (qw3birc@128.30.52.28)
  11. # [02:02] * Quits: Tomsk (qw3birc@128.30.52.28) (Ping timeout)
  12. # [02:03] * Joins: homata_ (homata@58.158.182.50)
  13. # [02:04] * Quits: homata (homata@58.158.182.50) (Ping timeout)
  14. # [02:06] * Quits: smaug_ (chatzilla@63.245.220.224) (Ping timeout)
  15. # [02:07] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
  16. # [02:07] * Quits: davidb (davidb@63.245.220.240) (Quit: davidb)
  17. # [02:09] * Joins: dveditz (dveditz@63.245.220.240)
  18. # [02:12] * Quits: dveditz (dveditz@63.245.220.240) (Ping timeout)
  19. # [02:20] * Joins: homata (homata@58.158.182.50)
  20. # [02:21] * Quits: homata_ (homata@58.158.182.50) (Ping timeout)
  21. # [02:22] * Joins: dveditz (dveditz@63.245.220.240)
  22. # [02:43] * Quits: dveditz (dveditz@63.245.220.240) (Quit: dveditz)
  23. # [03:01] * Joins: homata_ (homata@58.158.182.50)
  24. # [03:02] * Quits: homata (homata@58.158.182.50) (Ping timeout)
  25. # [03:52] * Joins: Sirisian (Sirisian@141.218.208.86)
  26. # [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
  27. # [04:25] * Joins: MikeSmith_ (MikeSmith@114.48.26.76)
  28. # [04:27] * Quits: MikeSmith (MikeSmith@114.48.182.173) (Ping timeout)
  29. # [04:27] * MikeSmith_ is now known as MikeSmith
  30. # [04:27] <Hixie> Sirisian: it doesn't simplify that much, does it? it's just two less lines of code
  31. # [04:27] <Hixie> one to create the canvas and one to draw the image into it
  32. # [04:30] * Joins: aroben (aroben@24.213.129.137)
  33. # [04:47] <Sirisian> Hixie, Well you don't need the canvas then to be the size of the image.
  34. # [05:24] <Sirisian> No reason not to add it really.
  35. # [05:33] <Sirisian> Hixie, http://www.mail-archive.com/whatwg@lists.whatwg.org/msg10354.html
  36. # [05:33] <Sirisian> huh someone already made the point I wanted on another subject
  37. # [05:33] <Sirisian> wow back in 2008
  38. # [05:34] <Sirisian> putImageData doesn't even have a way to ignore copying transparent pixels :\
  39. # [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
  40. # [05:35] <Sirisian> the API loves to copy stuff it seems.
  41. # [05:35] <Sirisian> makes it hard for doing complicated games
  42. # [05:39] <Sirisian> hmm http://www.w3.org/Bugs/Public/show_bug.cgi?id=11517
  43. # [05:39] <Sirisian> same idea
  44. # [05:41] <Sirisian> Hixie, how hard is it for you to make "quick" changes to the API? Like if you quickly added:
  45. # [05:41] <Sirisian> void drawImage(in ImageData image, in double dx, in double dy, in optional double dw, in double dh);
  46. # [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);
  47. # [05:41] <Sirisian> Would implementors complain?
  48. # [05:45] <Sirisian> Into this page I mean: http://www.w3.org/TR/2dcontext/#conformance-requirements
  49. # [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.
  50. # [05:56] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11565
  51. # [05:56] <Sirisian> ^ there is the suggestion
  52. # [06:01] * Quits: aroben (aroben@24.213.129.137) (Quit: aroben)
  53. # [06:02] <Sirisian> What specification contains "Image" as in the Javascript object?
  54. # [06:18] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11566
  55. # [06:18] <Sirisian> there found it
  56. # [06:40] <Hixie> implementors wouldn't complain, they'd probably implement it instead of something else though
  57. # [06:41] <Hixie> and it's not clear to me that this is especially compelling compared to the other stuff in the spec :-)
  58. # [06:41] <Hixie> Image and drawImage() are both specced in http://whatwg.org/html
  59. # [07:09] * Quits: homata_ (homata@58.158.182.50) (Ping timeout)
  60. # [07:15] <Sirisian> Well it's more important because it would be nice for game programming.
  61. # [07:15] <Sirisian> (rendering to an image allows easier caching)
  62. # [07:34] * Joins: sicking (chatzilla@98.210.155.80)
  63. # [07:35] * Quits: sicking (chatzilla@98.210.155.80) (Client exited)
  64. # [08:10] * Joins: smaug_ (chatzilla@209.118.182.194)
  65. # [08:18] * Joins: kennyluck (kennyluck@128.30.52.169)
  66. # [08:18] * Quits: kennyluck (kennyluck@128.30.52.169) (Client exited)
  67. # [08:19] * Joins: kennyluck (kennyluck@128.30.52.169)
  68. # [08:36] * Joins: homata (homata@58.158.182.50)
  69. # [08:37] * Quits: homata (homata@58.158.182.50) (Quit: Leaving...)
  70. # [08:37] * Joins: homata (homata@58.158.182.50)
  71. # [08:39] * Quits: smaug_ (chatzilla@209.118.182.194) (Ping timeout)
  72. # [08:57] <Hixie> Sirisian: just render to a canvas and treat it like an image
  73. # [08:58] <Sirisian> A hack
  74. # [08:58] <Sirisian> Also do you sleep?
  75. # [08:58] <Sirisian> Hixie, doesn't that have overhead?
  76. # [08:59] <Sirisian> I want to add features to canvas/javascript that allow a person to elliminate unecessary copying.
  77. # [08:59] <Sirisian> eliminate*
  78. # [09:00] <Hixie> try it and profile it... before we add optimisation features in the spec, we need proof that it's slow :-)
  79. # [09:01] <Sirisian> touche
  80. # [09:01] <Sirisian> but it does make code simpler
  81. # [09:03] <Hixie> if it makes it simpler enough to matter, file a bug or send an e-mail showing the difference
  82. # [09:03] <Hixie> sometimes people will find another way to simplify it showing that it's not necessary to add a new feature
  83. # [09:03] <Hixie> and sometimes they'll agree and we'll add the new feature :-)
  84. # [09:04] <Sirisian> I did
  85. # [09:04] <Sirisian> http://www.w3.org/Bugs/Public/show_bug.cgi?id=11566
  86. # [09:04] * Sirisian plays the waiting game
  87. # [09:05] <Sirisian> I should show the difference, but I assumed people have seen the ImageToImageData function a hundred times
  88. # [09:08] * Joins: arve (arve@213.236.208.22)
  89. # [09:18] <Hixie> cool, thanks
  90. # [09:19] <Hixie> it's just a matter of time until i get to it
  91. # [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
  92. # [09:19] <Hixie> (give it time to draw the chart, it's a lot of data)
  93. # [09:19] <Hixie> (and my script is nrather naive)
  94. # [09:20] <Sirisian> heh cool
  95. # [09:44] <Sirisian> Well I gtg. Thanks for listening :)
  96. # [09:44] * Quits: Sirisian (Sirisian@141.218.208.86) (Quit: Leaving)
  97. # [09:50] * Quits: kennyluck (kennyluck@128.30.52.169) (Quit: kennyluck)
  98. # [10:23] * Quits: homata (homata@58.158.182.50) (Ping timeout)
  99. # [10:23] * Joins: homata (homata@58.158.182.50)
  100. # [10:25] * Joins: MikeSmith_ (MikeSmith@111.188.65.130)
  101. # [10:27] * Quits: MikeSmith (MikeSmith@114.48.26.76) (Ping timeout)
  102. # [10:27] * MikeSmith_ is now known as MikeSmith
  103. # [10:37] * Joins: homata_ (homata@58.158.182.50)
  104. # [10:40] * Quits: homata (homata@58.158.182.50) (Ping timeout)
  105. # [11:18] * Quits: Lachy (Lachlan@84.215.59.50) (Quit: This computer has gone to sleep)
  106. # [11:36] * Joins: Lachy (Lachlan@213.236.208.22)
  107. # [11:36] * Quits: Lachy (Lachlan@213.236.208.22) (Client exited)
  108. # [11:36] * Joins: Lachy (Lachlan@213.236.208.22)
  109. # [11:53] * Quits: homata_ (homata@58.158.182.50) (Quit: Leaving...)
  110. # [12:59] * Quits: arve (arve@213.236.208.22) (Quit: Ex-Chat)
  111. # [13:04] * Joins: arve (arve@213.236.208.22)
  112. # [13:09] * Joins: kennyluck (kennyluck@128.30.52.169)
  113. # [14:51] * Quits: arve (arve@213.236.208.22) (Quit: Ex-Chat)
  114. # [14:55] * Joins: miketaylr (miketaylr@76.15.238.5)
  115. # [15:00] * Joins: ArtB (ArtB@192.100.124.220)
  116. # [15:12] * Quits: karl (karlcow@128.30.54.58) (Ping timeout)
  117. # [15:18] * Joins: karl (karlcow@128.30.54.58)
  118. # [15:48] * Joins: aroben (aroben@24.213.129.137)
  119. # [15:57] * Joins: smaug_ (chatzilla@209.118.182.194)
  120. # [16:07] * Quits: ArtB (ArtB@192.100.124.220) (Ping timeout)
  121. # [16:15] * Joins: ArtB (ArtB@192.100.124.218)
  122. # [16:18] * Joins: Marcos (Marcos@213.236.208.22)
  123. # [16:25] * Joins: MikeSmith_ (MikeSmith@114.48.5.160)
  124. # [16:27] * Quits: MikeSmith (MikeSmith@111.188.65.130) (Ping timeout)
  125. # [16:27] * MikeSmith_ is now known as MikeSmith
  126. # [17:03] * Quits: Marcos (Marcos@213.236.208.22) (Quit: Marcos)
  127. # [17:23] * Quits: smaug_ (chatzilla@209.118.182.194) (Ping timeout)
  128. # [17:52] * Quits: aroben (aroben@24.213.129.137) (Ping timeout)
  129. # [18:06] * Joins: aroben (aroben@24.213.129.137)
  130. # [18:31] * Quits: ArtB (ArtB@192.100.124.218) (Quit: Leaving.)
  131. # [18:33] * Quits: aroben (aroben@24.213.129.137) (Connection reset by peer)
  132. # [18:35] * Joins: aroben (aroben@24.213.129.137)
  133. # [18:35] * Quits: aroben (aroben@24.213.129.137) (Quit: aroben)
  134. # [18:56] * Joins: smaug_ (chatzilla@63.245.220.224)
  135. # [19:30] * Joins: sicking (chatzilla@63.245.220.240)
  136. # [19:45] * Quits: miketaylr (miketaylr@76.15.238.5) (Quit: miketaylr)
  137. # [20:04] * Quits: sicking (chatzilla@63.245.220.240) (Ping timeout)
  138. # [20:26] * Joins: dveditz (dveditz@63.249.106.47)
  139. # [20:30] * Quits: Lachy (Lachlan@213.236.208.22) (Quit: This computer has gone to sleep)
  140. # [20:48] * Quits: Lawouach (sylvain@82.229.61.197) (Quit: Ex-Chat)
  141. # [20:53] * Joins: Lawouach (sylvain@82.229.61.197)
  142. # [22:25] * Joins: MikeSmith_ (MikeSmith@114.48.43.203)
  143. # [22:27] * Quits: MikeSmith (MikeSmith@114.48.5.160) (Ping timeout)
  144. # [22:27] * MikeSmith_ is now known as MikeSmith
  145. # [23:22] * Joins: arve (arve@46.9.62.193)
  146. # [23:28] * Joins: sicking (chatzilla@63.245.220.240)
  147. # [23:43] * Quits: karl (karlcow@128.30.54.58) (Quit: This computer has gone to sleep)
  148. # Session Close: Sat Dec 18 00:00:00 2010

The end :)