Index: src/gpu/GrLayerHoister.cpp |
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp |
index 0a86e419b635f4c176cb5b50c809045f9d17bd3c..ab27f08493ecc261770b85947ab9464282bcbff2 100644 |
--- a/src/gpu/GrLayerHoister.cpp |
+++ b/src/gpu/GrLayerHoister.cpp |
@@ -233,8 +233,9 @@ void GrLayerHoister::DrawLayersToAtlas(GrContext* context, |
const SkTDArray<GrHoistedLayer>& atlased) { |
if (atlased.count() > 0) { |
// All the atlased layers are rendered into the same GrTexture |
+ SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( |
- atlased[0].fLayer->texture()->asRenderTarget(), NULL)); |
+ atlased[0].fLayer->texture()->asRenderTarget(), &props)); |
SkCanvas* atlasCanvas = surface->getCanvas(); |
@@ -324,8 +325,9 @@ void GrLayerHoister::DrawLayers(GrContext* context, const SkTDArray<GrHoistedLay |
const SkIPoint offset = SkIPoint::Make(layer->srcIR().fLeft, layer->srcIR().fTop); |
// Each non-atlased layer has its own GrTexture |
+ SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( |
- layer->texture()->asRenderTarget(), NULL)); |
+ layer->texture()->asRenderTarget(), &props)); |
SkCanvas* layerCanvas = surface->getCanvas(); |