Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 8475009: Proposed canvas and WebGL cleanup (Closed)

Created:
9 years, 1 month ago by Jacob
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org, vsm, sra1
Visibility:
Public.

Description

Proposed canvas and WebGL cleanup BUG= TEST=

Patch Set 1 : ready to discuss #

Total comments: 24
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -14 lines) Patch
M client/html/generated/src/interface/CanvasPixelArray.dart View 1 chunk +5 lines, -4 lines 2 comments Download
M client/html/generated/src/interface/CanvasRenderingContext2D.dart View 4 chunks +8 lines, -9 lines 19 comments Download
M client/html/generated/src/interface/WebGLRenderingContext.dart View 1 chunk +16 lines, -1 line 3 comments Download

Messages

Total messages: 7 (0 generated)
Jacob
I'm going to send out a number of CLs today that i'd like to go ...
9 years, 1 month ago (2011-11-04 19:07:05 UTC) #1
nweiz
lgtm lgtm http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart File client/html/generated/src/interface/CanvasRenderingContext2D.dart (left): http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart#oldcode123 client/html/generated/src/interface/CanvasRenderingContext2D.dart:123: void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR_y, ...
9 years, 1 month ago (2011-11-04 21:09:06 UTC) #2
vsm
DBC http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasPixelArray.dart File client/html/generated/src/interface/CanvasPixelArray.dart (right): http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasPixelArray.dart#newcode8 client/html/generated/src/interface/CanvasPixelArray.dart:8: // add additional helper methods like If we ...
9 years, 1 month ago (2011-11-04 21:26:35 UTC) #3
Jacob
http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasPixelArray.dart File client/html/generated/src/interface/CanvasPixelArray.dart (right): http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasPixelArray.dart#newcode8 client/html/generated/src/interface/CanvasPixelArray.dart:8: // add additional helper methods like On 2011/11/04 21:26:35, ...
9 years, 1 month ago (2011-11-04 22:26:13 UTC) #4
arv (Not doing code reviews)
http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart File client/html/generated/src/interface/CanvasRenderingContext2D.dart (left): http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart#oldcode123 client/html/generated/src/interface/CanvasRenderingContext2D.dart:123: void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, ...
9 years, 1 month ago (2011-11-07 23:27:55 UTC) #5
mattsh
http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart File client/html/generated/src/interface/CanvasRenderingContext2D.dart (right): http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/interface/CanvasRenderingContext2D.dart#newcode80 client/html/generated/src/interface/CanvasRenderingContext2D.dart:80: ImageData createImageData(num sw, num sh); On 2011/11/07 23:27:56, arv ...
9 years, 1 month ago (2011-11-17 01:23:40 UTC) #6
Jacob
9 years, 1 month ago (2011-11-17 01:34:43 UTC) #7
http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/in...
File client/html/generated/src/interface/CanvasRenderingContext2D.dart (right):

http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/in...
client/html/generated/src/interface/CanvasRenderingContext2D.dart:89: void
drawImage(var image, num dx, num dy, [num dw, num dh]);
On 2011/11/17 01:23:40, mattsh wrote:
> On 2011/11/04 22:26:13, Jacob wrote:
> > On 2011/11/04 21:26:35, vsm wrote:
> > > A Drawable interface to type image?
> > 
> > I agree.
> Can we use a Rect type here?
> Can we make the first argument be Element rather than var?

I think that makes it more confusing as only a couple specific Element subtypes
are allowed

http://codereview.chromium.org/8475009/diff/2001/client/html/generated/src/in...
client/html/generated/src/interface/CanvasRenderingContext2D.dart:91: void
drawImageClipped(var image, num sx, num sy, num sw, num sh,
On 2011/11/17 01:23:40, mattsh wrote:
> I think this should take two Rect parameters (called sourceRect and destRect)
> rather than all these parameters.
in general i'd agree.  ideally we'd like to support both versions though as this
one will have a little better performance due to fewer object creations
got any idea for appropriate method names  for the versions that require Rect as
args.  *sigh* i wish dart would just support multiple method definitions with
different #s of args.

Powered by Google App Engine
This is Rietveld 408576698