commit | f80bfedc42fde88ae3f8dbd7b21950a22258fd22 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Tue Oct 07 05:56:02 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Oct 07 05:56:02 2014 -0700 |
tree | 53f8fa79d21b8d3a352b1d31a227f6fe80754585 | |
parent | b9ab5631703c258f1aae7a3ca1bb4b6596b5b42c [diff] [blame] |
GrContext::copyTexture->GrContext::copySurface. Add a flush writes pixel ops flag. Add an explicit flush writes for GrSurface. BUG=skia:2977 Committed: https://skia.googlesource.com/skia/+/cf99b00980b6c9c557e71abf1a7c9f9b21217262 Review URL: https://codereview.chromium.org/622663002
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index c190527..e8146f0 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp
@@ -298,10 +298,8 @@ SkImageInfo2GrPixelConfig(bm.colorType(), bm.alphaType()), bm.getPixels(), - bm.rowBytes()); - - // extra flush call, until Brian can figure out what's going on. - fCurContext->flush(); + bm.rowBytes(), + GrContext::kFlushWrites_PixelOp); } } #endif