Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3086)

Issue 6453065: arm: dynamic NEON support for SkBitmapProcState matrix operations. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by digit1
Modified:
12 years, 4 months ago
Reviewers:
DerekS, caryclark1, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

arm: dynamic NEON support for SkBitmapProcState matrix operations. This patch implements dynamic ARM NEON support for the functions implemented by src/core/SkBitmapProcState_matrixProcs.cpp. - Because the SkBitmapProcState_matrix_{clamp,repeat}.h headers are NEON-specific, they are renamed with a _neon.h suffix, and moved to src/opts/ (from src/core/) - Add a new file src/opts/SkBitmapProcState_matrixProcs_neon.cpp which implements the NEON code paths for all builds, and add it to the 'opts_neon' static library. - Modify SkBitmapProcState_matrixProcs.cpp to select the right code-path depending on our build configuration. Note that in the case where 'arm_neon == 1', we do not embed regular ARM code paths in the final binary. Only 'arm_neon_optional == 1' builds will contain both regular and NEON code paths at the same time. Note that there doesn't seem to be a simple way to put the NEON-specific selection from that currently is in SkBitmapProcState_matrixProcs.cpp into src/opts/. Doing so would require much more drastic restructuring. This is also true of the other SkBitmapProcState source files that will be touched in a future patch. Committed: https://code.google.com/p/skia/source/detail?r=4888

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -1647 lines) Patch
M gyp/opts.gyp View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/core/SkBitmapProcState_matrixProcs.cpp View 7 chunks +35 lines, -93 lines 0 comments Download
D src/core/SkBitmapProcState_matrix_clamp.h View 1 chunk +0 lines, -924 lines 0 comments Download
D src/core/SkBitmapProcState_matrix_repeat.h View 1 chunk +0 lines, -577 lines 0 comments Download
M src/core/SkUtilsArm.cpp View 2 chunks +3 lines, -6 lines 0 comments Download
A src/opts/SkBitmapProcState_matrixProcs_neon.cpp View 1 chunk +145 lines, -0 lines 0 comments Download
A + src/opts/SkBitmapProcState_matrix_clamp_neon.h View 1 2 4 chunks +3 lines, -7 lines 0 comments Download
A + src/opts/SkBitmapProcState_matrix_repeat_neon.h View 1 2 10 chunks +6 lines, -39 lines 0 comments Download

Messages

Total messages: 8
digit1
This is a slight reimplementation of http://codereview.appspot.com/6262044/ The main difference is that this fixes the ...
12 years, 4 months ago (2012-07-31 16:39:44 UTC) #1
DerekS
https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp File gyp/opts.gyp (right): https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp#newcode141 gyp/opts.gyp:141: # that currently comes with the skia 'android' directory. ...
12 years, 4 months ago (2012-07-31 18:57:20 UTC) #2
digit1
https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp File gyp/opts.gyp (right): https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp#newcode141 gyp/opts.gyp:141: # that currently comes with the skia 'android' directory. ...
12 years, 4 months ago (2012-08-01 09:05:54 UTC) #3
DerekS
On 2012/08/01 09:05:54, digit1 wrote: > https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp > File gyp/opts.gyp (right): > > https://codereview.appspot.com/6453065/diff/1/gyp/opts.gyp#newcode141 > ...
12 years, 4 months ago (2012-08-01 12:46:08 UTC) #4
caryclark1
Digit, did you move the files (e.g., svn move src/core/SkBitmapProcState_matrix_clamp.h src/opts/SkBitmapProcState_matrix_clamp_neon.h) or delete and add? ...
12 years, 4 months ago (2012-08-01 12:56:00 UTC) #5
digit1
I did the "svn rm" + "svn add", I'll try to redo this patch with ...
12 years, 4 months ago (2012-08-01 13:29:20 UTC) #6
digit1
Patch set 3 seems to look good now :)
12 years, 4 months ago (2012-08-01 13:43:35 UTC) #7
caryclark1
12 years, 4 months ago (2012-08-01 13:54:27 UTC) #8
On 2012/08/01 13:43:35, digit1 wrote:
> Patch set 3 seems to look good now :)

Agreed. That certainly improved the diff. LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b