Bug 146138

Summary: Get CAContext directly for CALayer instead of walking the layer tree.
Product: WebKit Reporter: Jeremy Jones <jeremyj-wk>
Component: MediaAssignee: Jeremy Jones <jeremyj-wk>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, simon.fraser, thorton
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Patch
darin: review+
Patch for landing. none

Description Jeremy Jones 2015-06-18 21:18:44 PDT
Get CAContext directly for CALayer instead of walking the layer tree.
Comment 1 Jeremy Jones 2015-06-18 21:19:16 PDT
rdar://problem/21455378
Comment 2 Jeremy Jones 2015-06-18 21:21:37 PDT
Created attachment 255169 [details]
Patch
Comment 3 Simon Fraser (smfr) 2015-06-19 08:19:30 PDT
Comment on attachment 255169 [details]
Patch

I can't review this without some more explanation in the changelog.
Comment 4 Darin Adler 2015-06-19 11:25:04 PDT
Comment on attachment 255169 [details]
Patch

Seems clearly more efficient and straightforward. Does it also fix any bugs? Can we make a regression test for the bugs it fixes?
Comment 5 Jeremy Jones 2015-06-19 11:32:44 PDT
(In reply to comment #4)
> Comment on attachment 255169 [details]
> Patch
> 
> Seems clearly more efficient and straightforward. Does it also fix any bugs?
> Can we make a regression test for the bugs it fixes?

I don't know of any concrete failures that this fixes, only the hunch that the convoluted approach might fail where the direct approach would succeed.
Comment 6 Jeremy Jones 2015-06-19 11:33:43 PDT
Created attachment 255203 [details]
Patch for landing.
Comment 7 Jeremy Jones 2015-06-19 11:34:06 PDT
(In reply to comment #3)
> Comment on attachment 255169 [details]
> Patch
> 
> I can't review this without some more explanation in the changelog.

Added more explanation.
Comment 8 WebKit Commit Bot 2015-06-19 12:29:36 PDT
Comment on attachment 255203 [details]
Patch for landing.

Clearing flags on attachment: 255203

Committed r185763: <http://trac.webkit.org/changeset/185763>