Index: example/HelloWorld.h |
diff --git a/example/HelloWorld.h b/example/HelloWorld.h |
index a1508c582d12b90c38fb70980be22ab348c48f4f..ef4e417ad62b60b5a93b1ed6f2f80955f8bb02a5 100644 |
--- a/example/HelloWorld.h |
+++ b/example/HelloWorld.h |
@@ -34,14 +34,14 @@ public: |
protected: |
SkSurface* createSurface() override { |
+ SkSurfaceProps props(INHERITED::getSurfaceProps()); |
if (kGPU_DeviceType == fType) { |
- SkSurfaceProps props(INHERITED::getSurfaceProps()); |
return SkSurface::NewRenderTargetDirect(fRenderTarget, &props); |
} |
static const SkImageInfo info = SkImageInfo::MakeN32Premul( |
SkScalarRoundToInt(this->width()), SkScalarRoundToInt(this->height())); |
- return fSurface = SkSurface::NewRaster(info); |
- } |
+ return fSurface = SkSurface::NewRaster(info, &props); |
+ } |
void draw(SkCanvas* canvas) override; |
void drawContents(SkCanvas* canvas); |