|
|
Retire setGradientSpaceTransform, setPatternSpaceTransform
Most gradient/pattern clients always reset the transform before
applying to a paint, while few (CanvasPattern) actually rely on the
transform state being persistent. This yields confusing semantics
where it's unclear whether it is safe to whack the state.
The CL removes the transform from the gradient/pattern state, and makes
it an argument to applyToPaint(). This simplifies the gradient/pattern
impl and clarifies that clients are responsible for tracking the local
matrix. The local matrix is still used as part of the shader cache key
- but since SkShaders already track their local matrix, there is no
need for explicit tracking in Gradient/Pattern.
R=fs@opera.com,junov@chromium.org
BUG= 614368
Committed: https://crrev.com/32296b3b4ae6c39f1add59880f90da075b9e104b
Cr-Commit-Position: refs/heads/master@{#396557}
Total comments: 2
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+75 lines, -108 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
|
View
|
1
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/ThemePainterMac.mm
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/canvas2d/CanvasPattern.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/canvas2d/CanvasPattern.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Gradient.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Gradient.cpp
|
View
|
1
2
3
4
5
6
|
7 chunks |
+22 lines, -26 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -16 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ImagePattern.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/ImagePattern.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Pattern.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Pattern.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -13 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PicturePattern.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 26 (12 generated)
|