Committing on behalf of gman@chromium.org:
authorkbr@chromium.org <kbr@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 Jun 2011 01:27:01 +0000 (01:27 +0000)
committerkbr@chromium.org <kbr@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 Jun 2011 01:27:01 +0000 (01:27 +0000)
Fix for putImageData

TEST=manually ran tests that were failing
BUG=84165
TBR=reed@google.com

Code review URL: http://codereview.appspot.com/4570042

git-svn-id: http://skia.googlecode.com/svn/trunk@1518 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrContext.cpp

index dae1cd1..3c74b83 100644 (file)
@@ -1302,6 +1302,7 @@ void GrContext::writePixels(int left, int top, int width, int height,
     matrix.setTranslate(GrIntToScalar(left), GrIntToScalar(top));
     fGpu->setViewMatrix(matrix);
 
+    fGpu->setColorFilter(0, SkXfermode::kDst_Mode);
     fGpu->disableState(GrDrawTarget::kClip_StateBit);
     fGpu->setAlpha(0xFF);
     fGpu->setBlendFunc(kOne_BlendCoeff,