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

Issue 12186002: Canvas API. There are still a number of things to do: (Closed)

Created:
7 years, 10 months ago by gram
Modified:
7 years, 10 months ago
Reviewers:
vsm
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Canvas API. There are still a number of things to do: - off-screen canvases/contexts - image APIs - clips need to be tested - text baseline and direction - image smoothing - global composite op testing Committed: https://code.google.com/p/dart/source/detail?r=18084

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3499 lines, -670 lines) Patch
M runtime/embedders/openglui/android/android_graphics_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/embedders/openglui/android/android_graphics_handler.cc View 4 chunks +8 lines, -3 lines 0 comments Download
M runtime/embedders/openglui/android/eventloop.cc View 1 chunk +5 lines, -3 lines 0 comments Download
A runtime/embedders/openglui/build_skia.sh View 1 chunk +105 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/canvas_context.h View 1 1 chunk +302 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/canvas_context.cc View 1 chunk +66 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/canvas_state.h View 1 chunk +309 lines, -0 lines 0 comments Download
A runtime/embedders/openglui/common/canvas_state.cc View 1 chunk +299 lines, -0 lines 0 comments Download
M runtime/embedders/openglui/common/dart_host.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M runtime/embedders/openglui/common/extension.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/embedders/openglui/common/extension.cc View 7 chunks +679 lines, -1 line 0 comments Download
M runtime/embedders/openglui/common/gl.dart View 1 4 chunks +553 lines, -4 lines 0 comments Download
D runtime/embedders/openglui/common/gl_graphics_handler.h View 1 chunk +0 lines, -40 lines 0 comments Download
D runtime/embedders/openglui/common/gl_graphics_handler.cc View 1 chunk +0 lines, -64 lines 0 comments Download
R + runtime/embedders/openglui/common/graphics_handler.h View 1 chunk +35 lines, -17 lines 0 comments Download
A + runtime/embedders/openglui/common/graphics_handler.cc View 1 chunk +61 lines, -44 lines 0 comments Download
M runtime/embedders/openglui/common/isized.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/embedders/openglui/common/opengl.h View 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/embedders/openglui/common/sound_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
A runtime/embedders/openglui/common/support.h View 1 chunk +37 lines, -0 lines 0 comments Download
M runtime/embedders/openglui/common/timer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/embedders/openglui/common/timer.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/embedders/openglui/common/vm_glue.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/embedders/openglui/common/vm_glue.cc View 7 chunks +16 lines, -24 lines 0 comments Download
M runtime/embedders/openglui/emulator/emulator_embedder.cc View 3 chunks +33 lines, -14 lines 0 comments Download
M runtime/embedders/openglui/emulator/emulator_graphics_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/embedders/openglui/emulator/emulator_graphics_handler.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M runtime/embedders/openglui/openglui_embedder.gypi View 1 11 chunks +137 lines, -8 lines 0 comments Download
M samples/openglui/emulator/emulator.gyp View 1 2 chunks +27 lines, -2 lines 0 comments Download
M samples/openglui/emulator/mobile_emulator_sample.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M samples/openglui/src/gl.dart View 1 chunk +1 line, -0 lines 0 comments Download
A samples/openglui/src/openglui_canvas_tests.dart View 1 1 chunk +711 lines, -0 lines 0 comments Download
A + samples/openglui/src/openglui_raytrace.dart View 1 4 chunks +23 lines, -28 lines 0 comments Download
M samples/openglui/src/raytrace.dart View 1 1 chunk +0 lines, -369 lines 0 comments Download
A samples/openglui/web/canvas_tests.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
M samples/openglui/web/gl_driver.dart View 1 chunk +9 lines, -3 lines 0 comments Download
A samples/openglui/web/openglui_canvas_tests_driver.dart View 1 1 chunk +13 lines, -0 lines 0 comments Download
A + samples/openglui/web/openglui_raytrace_driver.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
M samples/openglui/web/raytrace.html View 1 1 chunk +2 lines, -1 line 0 comments Download
M samples/openglui/web/raytrace_driver.dart View 1 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
gram
7 years, 10 months ago (2013-02-02 01:52:42 UTC) #1
vsm
Mostly LGTM, but I really think the samples be separated into a raytracer and the ...
7 years, 10 months ago (2013-02-04 18:18:41 UTC) #2
gram
PTAL. I split the samples up. There are two separate HTML files; for the desktop, ...
7 years, 10 months ago (2013-02-04 22:02:28 UTC) #3
vsm
7 years, 10 months ago (2013-02-04 22:16:01 UTC) #4
lgtm

https://codereview.chromium.org/12186002/diff/1/runtime/embedders/openglui/co...
File runtime/embedders/openglui/common/gl.dart (right):

https://codereview.chromium.org/12186002/diff/1/runtime/embedders/openglui/co...
runtime/embedders/openglui/common/gl.dart:232: double C2DSetGlobalAlpha(int
handle, double globalAlpha)
Got it.

On 2013/02/04 22:02:28, gram wrote:
> On 2013/02/04 18:18:41, vsm wrote:
> > I think we should use "num" instead of "double" here and elsewhere. 
> Otherwise,
> > something like:
> > cxt.globalAlpha = 1;
> > will throw a type error in checked mode.  (Note, we do this in dart:html.)
> 
> No, it won't throw, because the wrapper functions in the context all do casts
to
> double.

https://codereview.chromium.org/12186002/diff/1/runtime/embedders/openglui/co...
runtime/embedders/openglui/common/gl.dart:412: set globalAlpha(a) {
num a

https://codereview.chromium.org/12186002/diff/1/runtime/embedders/openglui/co...
runtime/embedders/openglui/common/gl.dart:447: set lineJoin(lj) => 
C2DSetLineJoin(_handle, _lineJoin = lj);
String lj

Powered by Google App Engine
This is Rietveld 408576698