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

Issue 7027055: special-case matrix invert for translate and scale (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by reed1
Modified:
11 years, 11 months ago
Reviewers:
JimVV, robertphillips, TomH
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

special-case matrix invert for translate and scale update unittest to use diff scale-x and scale-y values, and tests for non-invertible scale matrices Committed: https://code.google.com/p/skia/source/detail?r=7019

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -3 lines) Patch
M src/core/SkMatrix.cpp View 1 1 chunk +36 lines, -1 line 0 comments Download
M tests/MatrixTest.cpp View 1 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 7
reed1
11 years, 11 months ago (2013-01-04 15:48:06 UTC) #1
reed1
new running bench [640 480] matrix_invert_maprect_typemask_nonpersp 8888: cmsecs = 8.89 running bench [640 480] matrix_invert_maprect_typemask_rectstaysrect ...
11 years, 11 months ago (2013-01-04 15:49:16 UTC) #2
robertphillips
LGTM https://codereview.appspot.com/7027055/diff/1/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.appspot.com/7027055/diff/1/src/core/SkMatrix.cpp#newcode856 src/core/SkMatrix.cpp:856: if (0 == (mask & ~(kScale_Mask | kTranslate_Mask))) ...
11 years, 11 months ago (2013-01-04 15:58:33 UTC) #3
TomH
The numbers are nice when it's a win, but there are a couple of cases ...
11 years, 11 months ago (2013-01-04 16:21:28 UTC) #4
reed1
From reading the profile, the slow-downs are a combination of noise (the invert step is ...
11 years, 11 months ago (2013-01-04 16:26:51 UTC) #5
JimVV
If the common case is only scale+translate, is there any reason to not to pull ...
11 years, 11 months ago (2013-01-04 16:39:04 UTC) #6
robertphillips
11 years, 11 months ago (2013-01-07 13:38:02 UTC) #7
Message was sent while issue was closed.
Without the SK_IGNORE_FAST_SCALEMATRIX_INVERT #define this causes the following
layout test failures (please see https://codereview.chromium.org/11797003/):

  fast/borders/border-image-massive-scale.html [ ImageOnlyFailure ]
  fast/borders/border-image-outset-in-shorthand.html [ ImageOnlyFailure ]
  fast/borders/border-image-outset.html [ ImageOnlyFailure ]
  fast/borders/border-image-scaled.html [ ImageOnlyFailure ]    - mac-only?
  fast/canvas/canvas-incremental-repaint.html [ ImageOnlyFailure ]
  fast/speech/input-appearance-searchandspeech.html [ ImageOnlyFailure ] -
linux-only?
 
platform/chromium/virtual/softwarecompositing/visibility/visibility-image-layers.html
[ ImageOnlyFailure ] - mac-only?
  svg/W3C-SVG-1.1-SE/pservers-grad-17-b.svg [ ImageOnlyFailure ]
  svg/W3C-SVG-1.1-SE/pservers-grad-20-b.svg [ ImageOnlyFailure ]
  svg/W3C-SVG-1.1/pservers-grad-17-b.svg [ ImageOnlyFailure ]
  svg/custom/non-scaling-stroke.svg [ ImageOnlyFailure ]
  tables/mozilla/bugs/bug137388-2.html [ ImageOnlyFailure ]
  tables/mozilla/bugs/bug23235.html [ ImageOnlyFailure ] - linux-only?
  tables/mozilla/bugs/bug4093.html [ ImageOnlyFailure ]
Sign in to reply to this message.

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