[Webkit-unassigned] [Bug 90277] Web Inspector: added DecodeImage and ResizeImage events to TimelineAgent
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 5 05:03:42 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=90277
Pavel Feldman <pfeldman at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #150916|review? |review-
Flag| |
--- Comment #18 from Pavel Feldman <pfeldman at chromium.org> 2012-07-05 05:03:41 PST ---
(From update of attachment 150916)
View in context: https://bugs.webkit.org/attachment.cgi?id=150916&action=review
> Source/WebCore/ChangeLog:8
> + * inspector/InspectorInstrumentation.cpp:
Please explain what has changed and why.
> Source/WebCore/inspector/InspectorInstrumentation.h:261
> + static InspectorTimelineAgent* timelineAgentForOrphanEvents();
I thought this has already landed. Do you need to rebaseline?
> Source/WebCore/inspector/InspectorTimelineAgent.cpp:43
> +#include "InspectorInstrumentation.h"
ditto
> Source/WebCore/inspector/InspectorTimelineAgent.cpp:250
> + pushCurrentRecord(TimelineRecordFactory::createPaintData(rect), TimelineRecordType::Paint, true, frame, true);
ditto
> Source/WebCore/platform/graphics/GraphicsContext.cpp:494
> + InspectorInstrumentation::willPaintImage(FractionalLayoutRect(dest.location(), FloatSize(tw, th)));
You should do no extra work in case there are no front-ends. I.e. you should pass dest, tw and th into the method.
> Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:87
> TRACE_EVENT("nonCachedResize", const_cast<NativeImageSkia*>(this), 0);
I would either move this TRACE_EVENT into the instrumentation or make your instrumentation be called from the macro.
> Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:89
> + InspectorInstrumentation::willResizeImage();
See how TRACE_EVENT above differentiates between the cached and non-cached resizes. You might want to do the same.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list