diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrSurfaceProxy.cpp | 15 | ||||
-rw-r--r-- | src/gpu/GrSurfaceProxyPriv.h | 12 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp index 727bcb51aa..ac025dcc59 100644 --- a/src/gpu/GrSurfaceProxy.cpp +++ b/src/gpu/GrSurfaceProxy.cpp @@ -290,18 +290,3 @@ sk_sp<GrSurfaceContext> GrSurfaceProxy::TestCopy(GrContext* context, const GrSur return dstContext; } -void GrSurfaceProxyPriv::makeBudgeted() { - if (fProxy->fTarget) { - fProxy->fTarget->resourcePriv().makeBudgeted(); - } - - fProxy->fBudgeted = SkBudgeted::kYes; -} - -void GrSurfaceProxyPriv::makeUnbudgeted() { - if (fProxy->fTarget) { - fProxy->fTarget->resourcePriv().makeUnbudgeted(); - } - - fProxy->fBudgeted = SkBudgeted::kNo; -} diff --git a/src/gpu/GrSurfaceProxyPriv.h b/src/gpu/GrSurfaceProxyPriv.h index 0d10ef6504..e5a628c1e7 100644 --- a/src/gpu/GrSurfaceProxyPriv.h +++ b/src/gpu/GrSurfaceProxyPriv.h @@ -23,18 +23,6 @@ public: // Don't abuse these two!!!!!!! bool isExact() const { return SkBackingFit::kExact == fProxy->fFit; } - // These next two are very specialized and wacky - don't use them! - - // In the case where an unbudgeted, deferred SkSurface_Gpu has snapped a budgeted, deferred - // SkImage_Gpu, this serves to propagate the budgeting forward in time. For now, and - // presumably forever, this will not change any flushing decisions but may make Ganesh - // appear to have gone over budget. In the case of non-deferred proxies this will immediately - // propagate the budget decision to the resource, which in itself is dubious. - void makeBudgeted(); - // In the case where a budgeted, deferred SkSurface_Gpu has snapped an unbudgeted, deferred - // SkImage_Gpu, this serves to propagate the lack of budgeting forward in time. - void makeUnbudgeted(); - private: explicit GrSurfaceProxyPriv(GrSurfaceProxy* proxy) : fProxy(proxy) {} GrSurfaceProxyPriv(const GrSurfaceProxyPriv&) {} // unimpl |