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 78820 e8ed233379f25842026b930c863be26a52433a28
parent 78819 2b45524deae5595aff0e9dac2c3d17808b2f02b7
child 78821 e63de88c57805ed75f8a9e20b102af7b6d436a0c
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs688902
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)