DescriptionProvide approximate type functions for SkMatrix44.
Skia's SkMatrix44 class provides methods for computing the type of a matrix
using exact computations, i.e. matrix values must be of exactly some value.
However, in some cases some inaccuracy can be tolerated.
This patch adds an implementation of IsApproximatelyIdentityOrTranslation()
as part of the gfx::Transform class. This replaces the same computation in
picture_layer_tiling.cc.
Should any other approximate type computations on gfx::Transform matrices be
necessary they should be added to gfx::Transform directly.
BUG=293787
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229609
Patch Set 1 #
Total comments: 16
Patch Set 2 : Clean up. #Patch Set 3 : Rename functions taking gfx::Transform. #
Total comments: 2
Patch Set 4 : Remove IsApproximatelyIntegerTransform #Patch Set 5 : Re-upload. #
Total comments: 4
Patch Set 6 : Move code to gfx::Transform class. #
Total comments: 3
Patch Set 7 : Clean up. #Patch Set 8 : Pass constants as float not double in unit test. #
Messages
Total messages: 21 (0 generated)
|