RESOLVED FIXED 135384
[TexMap] Move TextureMapperLayer::textureMapper() definition into the header
https://bugs.webkit.org/show_bug.cgi?id=135384
Summary [TexMap] Move TextureMapperLayer::textureMapper() definition into the header
Zan Dobersek
Reported 2014-07-29 06:46:57 PDT
[TexMap] Move TextureMapperLayer::textureMapper() definition into the header
Attachments
Patch (3.56 KB, patch)
2014-07-29 06:56 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2014-07-29 06:56:07 PDT
Martin Robinson
Comment 2 2014-07-29 10:05:12 PDT
Comment on attachment 235685 [details] Patch Does this result in notable performance improvement. I ask because changes like these also increase code size.
Zan Dobersek
Comment 3 2014-07-29 14:04:13 PDT
Inlining the two methods results in the generation of 7 instructions in total that crawl up the combined chain of effect targets and parent layers. I think this is a better alternative to the overhead of branching into a separate function and setting up the prologue and epilogue there. This only affects three call sites, one of which was noticeably hot during the profiling. It's still only a small improvement, but comes at a minimal cost of increase in code size.
Zan Dobersek
Comment 4 2014-07-30 00:48:05 PDT
Comment on attachment 235685 [details] Patch Clearing flags on attachment: 235685 Committed r171795: <http://trac.webkit.org/changeset/171795>
Zan Dobersek
Comment 5 2014-07-30 00:48:13 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.