Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 13b84e7f0f38148f4a57e9d68da1f755ab8882c1..5b37e08b305aa0b68e1b03de25fc816d94a04a57 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -482,9 +482,9 @@ private: |
typedef SkBitmapDevice INHERITED; |
}; |
-SkCanvas::SkCanvas(int width, int height) |
+SkCanvas::SkCanvas(int width, int height, const SkSurfaceProps* props) |
: fMCStack(sizeof(MCRec), fMCRecStorage, sizeof(fMCRecStorage)) |
- , fProps(SkSurfaceProps::kLegacyFontHost_InitType) |
+ , fProps(SkSurfacePropsCopyOrDefault(props)) |
{ |
inc_canvas(); |