Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: src/gpu/GrSurfaceProxy.cpp

Issue 2502923003: Add IORef capability to GrSurfaceProxy objects - take 2 (Closed)
Patch Set: Fixed bug in transferRefs Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/GrSurfaceProxy.h ('k') | tests/ProxyRefTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrSurfaceProxy.cpp
diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp
index 831cd3213c31f69e018e8a9fb7232806735396f5..9de41ef48264ca13908990e33b300fcce4ffe6f0 100644
--- a/src/gpu/GrSurfaceProxy.cpp
+++ b/src/gpu/GrSurfaceProxy.cpp
@@ -43,6 +43,8 @@ GrSurface* GrSurfaceProxy::instantiate(GrTextureProvider* texProvider) {
return nullptr;
}
+ this->INHERITED::transferRefs();
+
#ifdef SK_DEBUG
if (kInvalidGpuMemorySize != this->getRawGpuMemorySize_debugOnly()) {
SkASSERT(fTarget->gpuMemorySize() <= this->getRawGpuMemorySize_debugOnly());
« no previous file with comments | « include/private/GrSurfaceProxy.h ('k') | tests/ProxyRefTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698