aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson <tomhudson@chromium.org>2014-06-27 08:19:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-27 08:19:35 -0700
commita8377402ee626bd0a6c61ef9f0c256f06eca5759 (patch)
tree36cc05aa90c65eb5f66a8048b255460deaca986e
parent3bb195ef0d9691384027d7b61b0b8ef8379aaf5d (diff)
Mark SkBBoxHierarchyRecord destructor as virtual
Immediate parent classes have empty virtual destructors, but farther up the inheritance tree there is complicated destruction going on. This change may be unnecessary but makes the polymorphism explicit. BUG=skia:1734 R=mtklein@google.com, tomhudson@google.com, mtklein Author: tomhudson@chromium.org Review URL: https://codereview.chromium.org/359773002
-rw-r--r--src/core/SkBBoxHierarchyRecord.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkBBoxHierarchyRecord.h b/src/core/SkBBoxHierarchyRecord.h
index 51fce0d8bc..ba7d514bc5 100644
--- a/src/core/SkBBoxHierarchyRecord.h
+++ b/src/core/SkBBoxHierarchyRecord.h
@@ -20,6 +20,7 @@ class SkBBoxHierarchyRecord : public SkBBoxRecord, public SkBBoxHierarchyClient
public:
/** This will take a ref of h */
SkBBoxHierarchyRecord(const SkISize& size, uint32_t recordFlags, SkBBoxHierarchy* h);
+ virtual ~SkBBoxHierarchyRecord() { };
virtual void handleBBox(const SkRect& bounds) SK_OVERRIDE;