========================================================================
http://mondrian.corp.google.com/file/10345804///depot/googleclient/gears/opensource/gears/canvas/canvas_rendering_context_2d.cc?a=1
File 
//depot/googleclient/gears/opensource/gears/canvas/canvas_rendering_context_2d.cc
 (snapshot 1)
------------------------------------
Line 45: fill_style_as_string_(STRING16(L"#000000")),
On 5:29 am, cprince wrote:
> Whatever initial state the canvas has on day 1, callers will come to rely on
> (i.e. assume) those initial values.
> 
> Are the values here standardized?  Does Canvas spec this?  Just curious.

The canvas spec (as linked to on line 92) explicitly says, "When the context is
created, the strokeStyle and fillStyle attributes must initially have the string
value #000000".
------------------------------------
Line 230: skia_canvas_->rotate(SkDoubleToScalar(angle * 180.0 / 3.1415926535));
On 5:30 am, cprince wrote:
> Is there no constant for Pi in any header??

M_PI seems to work.
------------------------------------
Line 270: if (reset_matrix) {
On 5:33 am, cprince wrote:
> I think you got these two cases reversed?

You're right. Brain fart on my behalf. I wonder if HTML5 comes with a
comprehensive canvas test suite...
========================================================================

-- 
To respond, reply to this email or visit 
http://mondrian.corp.google.com/10345804

Reply via email to