Summary: | Web Inspector: NMI: instrument NativeImageSkia | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> | ||||||||
Component: | Web Inspector (Deprecated) | Assignee: | Ilya Tikhonovsky <loislo> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | alph, apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, senorblanco, timothy, webkit.review.bot, yurys | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Ilya Tikhonovsky
2012-09-10 09:08:02 PDT
Created attachment 163144 [details]
Patch
Comment on attachment 163144 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=163144&action=review > Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:40 > +#include "WebCoreMemoryInstrumentation.h" As discussed, we shouldn't add dependency on WebCore. Created attachment 166887 [details]
Patch
Comment on attachment 166887 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166887&action=review > Source/WebCore/platform/graphics/BitmapImage.cpp:586 > +void reportMemoryUsage(const NativeImageSkia* const&, MemoryObjectInfo*); Let's move this declaration into NativeImagePtr.h next to NativeImagePtr typdef for Skia. > Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:167 > +void reportSkBitmapMemoryUsage(MemoryClassInfo& info, const SkBitmap& image) missing static? > Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:178 > + reportSkBitmapMemoryUsage(info, m_image); Why not declare WTF::reportMemoryUsage(...SkBitmap... and call addMember here? Created attachment 166891 [details]
Patch
Committed r130289: <http://trac.webkit.org/changeset/130289> |