aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurface.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-02 10:42:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-02 10:42:24 -0700
commitcf99b00980b6c9c557e71abf1a7c9f9b21217262 (patch)
tree78d53c2e98762fb6e810603c104d03e356c26876 /src/gpu/GrSurface.cpp
parentf0e2154b45ab2bb0d7fa5a9d38955260ce42831c (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.cpp6
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()) {