Index: src/gpu/GrTexture.cpp |
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp |
index aac91c585844f52dcc94c28ff8702d27811113ce..c962ba28272db3c4ffce53512faac1620fc09959 100644 |
--- a/src/gpu/GrTexture.cpp |
+++ b/src/gpu/GrTexture.cpp |
@@ -67,18 +67,18 @@ bool GrTexture::readPixels(int left, int top, int width, int height, |
pixelOpsFlags); |
} |
-void GrTexture::writePixels(int left, int top, int width, int height, |
+bool GrTexture::writePixels(int left, int top, int width, int height, |
GrPixelConfig config, const void* buffer, |
size_t rowBytes, uint32_t pixelOpsFlags) { |
// go through context so that all necessary flushing occurs |
GrContext* context = this->getContext(); |
if (NULL == context) { |
- return; |
+ return false; |
} |
- context->writeTexturePixels(this, |
- left, top, width, height, |
- config, buffer, rowBytes, |
- pixelOpsFlags); |
+ return context->writeTexturePixels(this, |
+ left, top, width, height, |
+ config, buffer, rowBytes, |
+ pixelOpsFlags); |
} |
void GrTexture::onRelease() { |