Index: src/views/SkWindow.cpp |
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp |
index 90ef2804e672cb956a6c1ac2e0e9e141e00335ea..7870d06bfe969a2105e2d379a53aee0ec63db7ce 100644 |
--- a/src/views/SkWindow.cpp |
+++ b/src/views/SkWindow.cpp |
@@ -14,7 +14,10 @@ |
#define SK_EventDelayInval "\xd" "n" "\xa" "l" |
-SkWindow::SkWindow() : fFocusView(NULL) { |
+SkWindow::SkWindow() |
+ : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) |
+ , fFocusView(NULL) |
+{ |
fClicks.reset(); |
fWaitingOnInval = false; |
@@ -34,7 +37,7 @@ SkWindow::~SkWindow() { |
SkSurface* SkWindow::createSurface() { |
const SkBitmap& bm = this->getBitmap(); |
- return SkSurface::NewRasterDirect(bm.info(), bm.getPixels(), bm.rowBytes()); |
+ return SkSurface::NewRasterDirect(bm.info(), bm.getPixels(), bm.rowBytes(), &fSurfaceProps); |
} |
void SkWindow::setMatrix(const SkMatrix& matrix) { |