Index: src/gpu/effects/GrTextureStripAtlas.cpp |
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp |
index 9755ccd2af562d6d50da51bbfaf48f4224b1093f..64ee711b36934375f68f2639cea432a5f435dde8 100644 |
--- a/src/gpu/effects/GrTextureStripAtlas.cpp |
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp |
@@ -155,13 +155,12 @@ int GrTextureStripAtlas::lockRow(const SkBitmap& data) { |
// Pass in the kDontFlush flag, since we know we're writing to a part of this texture |
// that is not currently in use |
- fDesc.fContext->writeTexturePixels(fTexture, |
- 0, rowNumber * fDesc.fRowHeight, |
- fDesc.fWidth, fDesc.fRowHeight, |
- SkImageInfo2GrPixelConfig(data.info()), |
- data.getPixels(), |
- data.rowBytes(), |
- GrContext::kDontFlush_PixelOpsFlag); |
+ fTexture->writePixels(0, rowNumber * fDesc.fRowHeight, |
+ fDesc.fWidth, fDesc.fRowHeight, |
+ SkImageInfo2GrPixelConfig(data.info()), |
+ data.getPixels(), |
+ data.rowBytes(), |
+ GrContext::kDontFlush_PixelOpsFlag); |
} |
SkASSERT(rowNumber >= 0); |