Index: src/core/SkSpecialSurface.cpp |
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp |
index 7dced71eb2c8ddbdc1bf720a3655e4af1f215310..83a0ee7a19cec041198f7e5ea0974af7a2b40122 100644 |
--- a/src/core/SkSpecialSurface.cpp |
+++ b/src/core/SkSpecialSurface.cpp |
@@ -44,7 +44,7 @@ static SkSpecialSurface_Base* as_SB(SkSpecialSurface* surface) { |
SkSpecialSurface::SkSpecialSurface(SkImageFilter::Proxy* proxy, |
const SkIRect& subset, |
const SkSurfaceProps* props) |
- : fProps(SkSurfacePropsCopyOrDefault(props)) |
+ : fProps(SkSurfacePropsCopyOrDefault(props).flags(), kUnknown_SkPixelGeometry) |
, fSubset(subset) |
, fProxy(proxy) { |
SkASSERT(fSubset.width() > 0); |
@@ -76,7 +76,7 @@ public: |
fBitmap.setInfo(info, info.minRowBytes()); |
fBitmap.setPixelRef(pr); |
- fCanvas.reset(new SkCanvas(fBitmap)); |
+ fCanvas.reset(new SkCanvas(fBitmap, this->props())); |
} |
~SkSpecialSurface_Raster() override { } |