Bug 98607

Summary: Reduce calls to CGImageSourceCopyPropertiesAtIndex from frameSizeAtIndex
Product: WebKit Reporter: Pratik Solanki <psolanki>
Component: PlatformAssignee: Pratik Solanki <psolanki>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, psolanki, thorton
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Pratik Solanki
Reported 2012-10-06 16:01:55 PDT
ImageSource::orientationAtIndex() always calls CGImageSourceCopyPropertiesAtIndex. However in cases where the call is made from frameSizeAtIndex() we already have image properties. We can refactor the code to avoid a second call to this function under frameSizeAtIndex()
Attachments
Patch (3.24 KB, patch)
2012-10-06 16:05 PDT, Pratik Solanki
mitz: review+
Pratik Solanki
Comment 1 2012-10-06 16:05:10 PDT
Pratik Solanki
Comment 2 2012-10-06 16:06:09 PDT
Pratik Solanki
Comment 3 2012-10-06 17:10:44 PDT
Note You need to log in before you can comment on or make changes to this bug.