Chromium Code Reviews

Unified Diff: src/gpu/gl/GrGLTexture.cpp

Issue 504313002: Make GrGpuResources register with GrResourceCache2 after fully constructed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add newline back Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/gpu/gl/GrGLTexture.cpp
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
index 255cdd963165fac9bfb2d7d1b0df359adc892b89..bc013bc0ec0feebc5b81d6938d4d9f90a8cc8bdd 100644
--- a/src/gpu/gl/GrGLTexture.cpp
+++ b/src/gpu/gl/GrGLTexture.cpp
@@ -33,6 +33,7 @@ void GrGLTexture::init(GrGpuGL* gpu,
fRenderTarget.reset(SkNEW_ARGS(GrGLRenderTarget, (gpu, *rtDesc, vp, fTexIDObj, this)));
}
+ this->registerWithCache();
}
GrGLTexture::GrGLTexture(GrGpuGL* gpu,

Powered by Google App Engine