diff options
author | 2016-08-08 11:25:13 -0700 | |
---|---|---|
committer | 2016-08-08 11:25:13 -0700 | |
commit | f621ff49a288978c272d5ae069a6a1c04c74642b (patch) | |
tree | 1c8a5e1a8cf0d8e74fbab3dc696bd9afff81b58f | |
parent | eba373ef0a97b1578c1d1fae33476543cf9c73fa (diff) |
Fixed comment about SkLightingShader::Context memory handling
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2225093002
Review-Url: https://codereview.chromium.org/2225093002
-rw-r--r-- | src/core/SkLightingShader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp index e35ede3a17..e8280b1267 100644 --- a/src/core/SkLightingShader.cpp +++ b/src/core/SkLightingShader.cpp @@ -58,8 +58,8 @@ public: class LightingShaderContext : public SkShader::Context { public: - // The context takes ownership of the states. It will call their destructors - // but will NOT free the memory. + // The context takes ownership of the context and provider. It will call their destructors + // and then indirectly free their memory by calling free() on heapAllocated LightingShaderContext(const SkLightingShaderImpl&, const ContextRec&, SkShader::Context* diffuseContext, SkNormalSource::Provider*, void* heapAllocated); |