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

Issue 6255003: O2D:... (Closed)

Created:
9 years, 11 months ago by Tristan Schmelcher 2
Modified:
9 years, 6 months ago
CC:
o3d-review_googlegroups.com
Visibility:
Public.

Description

O2D: - New APIs: - Add a "visible" property to the Layer class to mimick the visible property of the Transform class. - Add a method to set an affine transform on Pattern objects so that texture patterns can be transformed independently from the Layers that use them. - Add a "paint operators" API for Layers and define four operators (currently only three of them implemented). The previous hard-coded behaviour was equivalent to the BLEND_WITH_TRANSPARENCY operator. - Fixes: - Replace the "mask" nomenclature with "clip", which is a more standard name. - Don't clip alpha-blended layers. - Restrict Layer painting to the rectangle defined by the attributes. - Set default alpha value to 0.0 instead of 1.0 to match what JavaScript expects. TEST=loaded O2D and verified all new functionality is working BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72006

Patch Set 1 #

Total comments: 22

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -28 lines) Patch
M core/cross/cairo/layer.h View 5 chunks +49 lines, -1 line 0 comments Download
M core/cross/cairo/layer.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M core/cross/cairo/pattern.h View 1 chunk +10 lines, -0 lines 0 comments Download
M core/cross/cairo/pattern.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M core/cross/cairo/renderer_cairo.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/cross/cairo/renderer_cairo.cc View 1 2 4 chunks +55 lines, -22 lines 0 comments Download
M plugin/idl/layer.idl View 2 chunks +34 lines, -1 line 0 comments Download
M plugin/idl/pattern.idl View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Tristan Schmelcher 2
9 years, 11 months ago (2011-01-18 20:48:44 UTC) #1
Tristan Schmelcher 2
Ping?
9 years, 11 months ago (2011-01-19 18:40:25 UTC) #2
fbarchard
http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc File core/cross/cairo/renderer_cairo.cc (right): http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc#newcode2 core/cross/cairo/renderer_cairo.cc:2: * Copyright 2010, Google Inc. update to 2011 http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc#newcode136 ...
9 years, 11 months ago (2011-01-19 18:51:20 UTC) #3
Tristan Schmelcher 2
http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc File core/cross/cairo/renderer_cairo.cc (right): http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc#newcode2 core/cross/cairo/renderer_cairo.cc:2: * Copyright 2010, Google Inc. On 2011/01/19 18:51:20, fbarchard ...
9 years, 11 months ago (2011-01-20 00:26:16 UTC) #4
zhurunz
http://codereview.chromium.org/6255003/diff/13001/core/cross/cairo/pattern.cc File core/cross/cairo/pattern.cc (right): http://codereview.chromium.org/6255003/diff/13001/core/cross/cairo/pattern.cc#newcode74 core/cross/cairo/pattern.cc:74: } put constructor and destructor to the beginning. http://codereview.chromium.org/6255003/diff/13001/core/cross/cairo/renderer_cairo.cc ...
9 years, 11 months ago (2011-01-20 00:46:51 UTC) #5
Tristan Schmelcher 2
http://codereview.chromium.org/6255003/diff/13001/core/cross/cairo/renderer_cairo.cc File core/cross/cairo/renderer_cairo.cc (right): http://codereview.chromium.org/6255003/diff/13001/core/cross/cairo/renderer_cairo.cc#newcode130 core/cross/cairo/renderer_cairo.cc:130: On 2011/01/20 00:46:51, zhurunz wrote: > Should we remove ...
9 years, 11 months ago (2011-01-20 01:12:38 UTC) #6
zhurunz
LGTM
9 years, 11 months ago (2011-01-20 17:36:49 UTC) #7
fbarchard
clarifying blend modes http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc File core/cross/cairo/renderer_cairo.cc (right): http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc#newcode136 core/cross/cairo/renderer_cairo.cc:136: cur->alpha()); shading, not shaders. flat shading ...
9 years, 11 months ago (2011-01-20 18:06:05 UTC) #8
Tristan Schmelcher 2
http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc File core/cross/cairo/renderer_cairo.cc (right): http://codereview.chromium.org/6255003/diff/1/core/cross/cairo/renderer_cairo.cc#newcode136 core/cross/cairo/renderer_cairo.cc:136: cur->alpha()); On 2011/01/20 18:06:05, fbarchard wrote: > shading, not ...
9 years, 11 months ago (2011-01-20 20:43:32 UTC) #9
fbarchard
9 years, 11 months ago (2011-01-20 20:53:41 UTC) #10
LGTM as long as its tested to be the same as O3d.

Here's a reference for destination alpha blending

http://my.opera.com/Vorlath/blog/2006/12/20/project-v-advanced-alpha-blending

Powered by Google App Engine
This is Rietveld 408576698