aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar dvonbeck <dvonbeck@google.com>2016-08-08 11:25:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-08 11:25:13 -0700
commitf621ff49a288978c272d5ae069a6a1c04c74642b (patch)
tree1c8a5e1a8cf0d8e74fbab3dc696bd9afff81b58f
parenteba373ef0a97b1578c1d1fae33476543cf9c73fa (diff)
Fixed comment about SkLightingShader::Context memory handling
-rw-r--r--src/core/SkLightingShader.cpp4
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);