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+

Description Pratik Solanki 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()
Comment 1 Pratik Solanki 2012-10-06 16:05:10 PDT
Created attachment 167463 [details]
Patch
Comment 2 Pratik Solanki 2012-10-06 16:06:09 PDT
<rdar://problem/12438025>
Comment 3 Pratik Solanki 2012-10-06 17:10:44 PDT
Committed r130591: <http://trac.webkit.org/changeset/130591>