aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMTask.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-07 22:59:38 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-07 22:59:38 +0000
commit37f6e62f114b72d34bcd3140b16b3b30fe5750c8 (patch)
tree5940f44cc7fe96aabe2c30a1d3f629739bb3e411 /dm/DMTask.cpp
parent8fae213590981b8ca37839a4e3cae1dae4e611fd (diff)
Move paints to the front of draw structs.
The order of arguments in these structs is arbitrary, so we might as well arrange them to optimize something. Putting the paints at the front means the logic to find the paint is a lot more concise: it's usually just ptr+0, or *(ptr+0) when the SkPaint is optional. This considerably reduces the size of the jump table in IsDraw::operator(). BUG=skia:2378 R=fmalita@chromium.org, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/272673002 git-svn-id: http://skia.googlecode.com/svn/trunk@14634 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'dm/DMTask.cpp')
0 files changed, 0 insertions, 0 deletions