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/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp index 37fd73f..d067f07 100644 --- a/src/gpu/GrSurface.cpp +++ b/src/gpu/GrSurface.cpp
@@ -48,6 +48,12 @@ return true; } +void GrSurface::flushWrites() { + if (!this->wasDestroyed()) { + this->getContext()->flushSurfaceWrites(this); + } +} + bool GrSurface::hasPendingRead() const { const GrTexture* thisTex = this->asTexture(); if (thisTex && thisTex->internalHasPendingRead()) {