aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/gpu/GrSurface.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h
index b01b6928ac..4d40e2e814 100644
--- a/include/gpu/GrSurface.h
+++ b/include/gpu/GrSurface.h
@@ -160,17 +160,17 @@ protected:
GrSurfaceDesc fDesc;
+ void onRelease() override;
+ void onAbandon() override;
+
+private:
void invokeReleaseProc() {
if (fReleaseProc) {
fReleaseProc(fReleaseCtx);
fReleaseProc = NULL;
}
}
-
- void onRelease() override;
- void onAbandon() override;
-
-private:
+
ReleaseProc fReleaseProc;
ReleaseCtx fReleaseCtx;