Bug 688902. 2d: Document Color as being non-premultiplied. r=bas
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 24 Sep 2011 11:51:29 -0400
changeset 77509 e8ed233379f25842026b930c863be26a52433a28
parent 77508 2b45524deae5595aff0e9dac2c3d17808b2f02b7
child 77510 e63de88c57805ed75f8a9e20b102af7b6d436a0c
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbas
bugs688902
milestone9.0a1
Bug 688902. 2d: Document Color as being non-premultiplied. r=bas
gfx/2d/Types.h
--- a/gfx/2d/Types.h
+++ b/gfx/2d/Types.h
@@ -105,16 +105,17 @@ enum ExtendMode { EXTEND_CLAMP, EXTEND_W
 enum FillRule { FILL_WINDING, FILL_EVEN_ODD };
 enum AntialiasMode { AA_NONE, AA_GRAY, AA_SUBPIXEL };
 enum Snapping { SNAP_NONE, SNAP_ALIGNED };
 enum Filter { FILTER_LINEAR, FILTER_POINT };
 enum PatternType { PATTERN_COLOR, PATTERN_SURFACE, PATTERN_LINEAR_GRADIENT, PATTERN_RADIAL_GRADIENT };
 enum JoinStyle { JOIN_BEVEL, JOIN_ROUND, JOIN_MITER, JOIN_MITER_OR_BEVEL };
 enum CapStyle { CAP_BUTT, CAP_ROUND, CAP_SQUARE };
 
+/* Color is stored in non-premultiplied form */
 struct Color
 {
 public:
   Color()
     : r(0.0f), g(0.0f), b(0.0f), a(0.0f)
   {}
   Color(Float aR, Float aG, Float aB, Float aA)
     : r(aR), g(aG), b(aB), a(aA)