diff options
author | Mike Reed <reed@google.com> | 2010-03-23 16:07:32 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2010-03-23 16:07:32 -0400 |
commit | 265c1bdff3f29390d7f5819497544c8f7f79518d (patch) | |
tree | 01edc7d7ad38f41f1d0957bdfba39b93de7cf54c /include | |
parent | 2be249260de3c70ec6780caf1a4f32be19319d46 (diff) | |
download | external_skia-265c1bdff3f29390d7f5819497544c8f7f79518d.zip external_skia-265c1bdff3f29390d7f5819497544c8f7f79518d.tar.gz external_skia-265c1bdff3f29390d7f5819497544c8f7f79518d.tar.bz2 |
fix bookkeeping on fParent (was firing assets on some sites)
Change-Id: I0c99b42cca2a9245b6d983f1d91c4d675f66fb14
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/SkLayer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/utils/SkLayer.h b/include/utils/SkLayer.h index d346c2f..c42261f 100644 --- a/include/utils/SkLayer.h +++ b/include/utils/SkLayer.h @@ -70,10 +70,10 @@ public: */ SkLayer* addChild(SkLayer* child); - /** Remove this layer from our child list, and unref() it and return true. - If it is not in our child list, do nothing and return false. + /** Remove this layer from its parent's list (or do nothing if it has no + parent.) If it had a parent, then unref() is called. */ - bool removeChild(SkLayer* child); + void detachFromParent(); /** Remove, and unref(), all of the layers in our child list. */ |