diff options
author | 2018-03-19 13:04:03 -0700 | |
---|---|---|
committer | 2018-03-19 20:37:25 +0000 | |
commit | af7700265b74123d8ad3de6dde0c21545453140b (patch) | |
tree | e642696535d8ad9fa814bb9b3dde6c2f4e37a18a /include | |
parent | 72040d9d709a27b53bbce5f11ede02bfcf72dfdf (diff) |
Allow SkTraceMemoryDump to exclude wrapped objects
Allow SkTraceMemoryDump to exclude wrapped objects from dumps. This
helps avoid duplicate dumping when Skia is wrapping an external object
which is already dumped externally.
Bug: 795358
Change-Id: Icbda96b564c81b958d40f74693280ac7d5ba7332
Reviewed-on: https://skia-review.googlesource.com/114681
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Eric Karl <ericrk@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTraceMemoryDump.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkTraceMemoryDump.h b/include/core/SkTraceMemoryDump.h index 8383190ccc..03656b2c37 100644 --- a/include/core/SkTraceMemoryDump.h +++ b/include/core/SkTraceMemoryDump.h @@ -73,6 +73,12 @@ public: */ virtual LevelOfDetail getRequestedDetails() const = 0; + /** + * Returns true if we should dump wrapped objects. Wrapped objects come from outside Skia, and + * may be independently tracked there. + */ + virtual bool shouldDumpWrappedObjects() const { return true; } + protected: virtual ~SkTraceMemoryDump() { } }; |