diff options
author | 2014-10-02 10:42:24 -0700 | |
---|---|---|
committer | 2014-10-02 10:42:24 -0700 | |
commit | cf99b00980b6c9c557e71abf1a7c9f9b21217262 (patch) | |
tree | 78d53c2e98762fb6e810603c104d03e356c26876 /src/gpu/GrSurface.cpp | |
parent | f0e2154b45ab2bb0d7fa5a9d38955260ce42831c (diff) |
GrContext::copyTexture->GrContext::copySurface.
Add a flush writes pixel ops flag.
Add an explicit flush writes for GrSurface.
BUG=skia:2977
Review URL: https://codereview.chromium.org/622663002
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r-- | src/gpu/GrSurface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp index 37fd73f4f4..d067f07d0d 100644 --- a/src/gpu/GrSurface.cpp +++ b/src/gpu/GrSurface.cpp @@ -48,6 +48,12 @@ bool GrSurface::savePixels(const char* filename) { 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()) { |