Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Issue 17365: Workaround a skia limitation when drawing repeated patterns (Closed)

Created:
11 years, 11 months ago by Michael Moss
Modified:
9 years, 7 months ago
Reviewers:
brettw, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Workaround a skia limitation when drawing repeated patterns, and remove extra transformations applied to pattern. Windows and Linux rebaselines will follow (see Issue 17632). Fixes: LayoutTests/fast/canvas/patternfill-repeat.html LayoutTests/svg/W3C-SVG-1.1/pservers-grad-06-b.svg Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8099

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
M WebCore/platform/graphics/skia/PatternSkia.cpp View 1 2 1 chunk +32 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Michael Moss
11 years, 11 months ago (2009-01-13 00:02:51 UTC) #1
brettw
Is this encountered a lot? A more efficient approach would be to redefine a PlatformPattern ...
11 years, 11 months ago (2009-01-13 01:46:22 UTC) #2
Michael Moss
As per our discussion, I tested this with CSS and SVG patterns (e.g. LayoutTests/css1/color_and_background/background_repeat.html) and ...
11 years, 11 months ago (2009-01-13 20:04:14 UTC) #3
brettw
http://codereview.chromium.org/17365/diff/1/2 File WebCore/platform/graphics/skia/PatternSkia.cpp (right): http://codereview.chromium.org/17365/diff/1/2#newcode80 Line 80: shader->setLocalMatrix(matrix); It seems like when we create the ...
11 years, 11 months ago (2009-01-13 20:23:15 UTC) #4
Michael Moss
http://codereview.chromium.org/17365/diff/1/2 File WebCore/platform/graphics/skia/PatternSkia.cpp (right): http://codereview.chromium.org/17365/diff/1/2#newcode80 Line 80: shader->setLocalMatrix(matrix); My (limited) understanding of skia and webkit ...
11 years, 11 months ago (2009-01-13 20:49:16 UTC) #5
brettw
Ah, got it. For some reason I thought you were padding all the way around. ...
11 years, 11 months ago (2009-01-13 20:50:33 UTC) #6
Michael Moss
While investigating another layout test, Evan noticed that all the pattern transformations, not just offsets, ...
11 years, 11 months ago (2009-01-14 00:38:40 UTC) #7
Michael Moss
11 years, 11 months ago (2009-01-14 23:01:53 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698