Chromium Code Reviews| Index: src/gpu/GrSurface.cpp |
| diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
| index 37fd73f4f415a82f526a88d018043a1f3bddc3f4..d067f07d0df167512e1259106d52dac4a4bc53b7 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() { |
|
robertphillips
2014/10/02 15:40:40
Have this guy check if he has writes and then just
bsalomon
2014/10/02 17:34:05
I think we will want to eventually communicate whi
|
| + if (!this->wasDestroyed()) { |
| + this->getContext()->flushSurfaceWrites(this); |
| + } |
| +} |
| + |
| bool GrSurface::hasPendingRead() const { |
| const GrTexture* thisTex = this->asTexture(); |
| if (thisTex && thisTex->internalHasPendingRead()) { |