gfx/skia/patches/archive/uninitialized-margin.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/patches/archive/uninitialized-margin.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +diff --git a/gfx/skia/src/core/SkDraw.cpp b/gfx/skia/src/core/SkDraw.cpp
     1.5 +--- a/gfx/skia/src/core/SkDraw.cpp
     1.6 ++++ b/gfx/skia/src/core/SkDraw.cpp
     1.7 +@@ -2529,17 +2529,17 @@ static bool compute_bounds(const SkPath&
     1.8 + 
     1.9 +     //  init our bounds from the path
    1.10 +     {
    1.11 +         SkRect pathBounds = devPath.getBounds();
    1.12 +         pathBounds.inset(-SK_ScalarHalf, -SK_ScalarHalf);
    1.13 +         pathBounds.roundOut(bounds);
    1.14 +     }
    1.15 + 
    1.16 +-    SkIPoint margin;
    1.17 ++    SkIPoint margin = SkIPoint::Make(0, 0);
    1.18 +     if (filter) {
    1.19 +         SkASSERT(filterMatrix);
    1.20 + 
    1.21 +         SkMask srcM, dstM;
    1.22 + 
    1.23 +         srcM.fBounds = *bounds;
    1.24 +         srcM.fFormat = SkMask::kA8_Format;
    1.25 +         srcM.fImage = NULL;

mercurial