Rename and clarify semantics of GrContext::resolveRenderTarget.
Review URL: https://codereview.chromium.org/696293004
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp
index 0aa5f68..1779f24 100644
--- a/src/gpu/GrSurface.cpp
+++ b/src/gpu/GrSurface.cpp
@@ -82,6 +82,12 @@
}
}
+void GrSurface::prepareForExternalRead() {
+ if (!this->wasDestroyed()) {
+ this->getContext()->prepareSurfaceForExternalRead(this);
+ }
+}
+
bool GrSurface::hasPendingRead() const {
const GrTexture* thisTex = this->asTexture();
if (thisTex && thisTex->internalHasPendingRead()) {