diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-28 16:21:27 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-29 12:48:17 +0000 |
commit | 1ec1faaff415a95022edfd504f552853a9af5d0a (patch) | |
tree | 2f414792e5a62d7b29074cf890b62b8509dd56de /src/gpu/GrSurface.cpp | |
parent | 334e88c21ab51e2a9fa8a8352da7380f420cdb96 (diff) |
Remove GrSurface::flushWrites
Change-Id: Ifac5af00ef852ee212964baa113b490a03e0168d
Reviewed-on: https://skia-review.googlesource.com/10293
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r-- | src/gpu/GrSurface.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp index 302ba43973..49753af8f9 100644 --- a/src/gpu/GrSurface.cpp +++ b/src/gpu/GrSurface.cpp @@ -163,12 +163,6 @@ bool GrSurface::readPixels(SkColorSpace* srcColorSpace, int left, int top, int w dstColorSpace, buffer, rowBytes, pixelOpsFlags); } -void GrSurface::flushWrites() { - if (!this->wasDestroyed()) { - this->getContext()->flushSurfaceWrites(this); - } -} - bool GrSurface::hasPendingRead() const { const GrTexture* thisTex = this->asTexture(); if (thisTex && thisTex->internalHasPendingRead()) { |