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

Issue 17633: Push drawPath() call into PlatformContextSkia to avoid juggling two copies of... (Closed)

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

Description

* Update |path|'s fill rule. * Change a currentPathInGlobalCoordinates() call to currentPathInLocalCoordinates(). * Get rid of currentPathInGlobalCoordinates(). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=7917

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp View 1 2 3 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Evan Stade
11 years, 11 months ago (2009-01-13 00:43:01 UTC) #1
brettw
http://codereview.chromium.org/17633/diff/1/4 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (left): http://codereview.chromium.org/17633/diff/1/4#oldcode1053 Line 1053: SkPath path = platformContext()->currentPathInLocalCoordinates(); Your new way of ...
11 years, 11 months ago (2009-01-13 01:03:48 UTC) #2
Evan Stade
http://codereview.chromium.org/17633/diff/1/4 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (left): http://codereview.chromium.org/17633/diff/1/4#oldcode1053 Line 1053: SkPath path = platformContext()->currentPathInLocalCoordinates(); > If we're worried ...
11 years, 11 months ago (2009-01-13 01:12:13 UTC) #3
Evan Stade
http://codereview.chromium.org/17633/diff/7/210 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17633/diff/7/210#newcode409 Line 409: SkPath path = platformContext()->currentPathInLocalCoordinates(); this fixes LayoutTests/svg/W3C-SVG-1.1/masking-path-02-b.svg . ...
11 years, 11 months ago (2009-01-13 01:47:12 UTC) #4
brettw
Actually, I think you should delete currentPathInGlobalCoordinates. The only user is the single place you ...
11 years, 11 months ago (2009-01-13 02:14:42 UTC) #5
Evan Stade
made Brett's suggested changes.
11 years, 11 months ago (2009-01-13 02:37:19 UTC) #6
brettw
11 years, 11 months ago (2009-01-13 02:54:36 UTC) #7
LGTM, thanks

http://codereview.chromium.org/17633/diff/217/218
File third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h
(right):

http://codereview.chromium.org/17633/diff/217/218#newcode166
Line 166: SkPath m_path;
Can you add to this comment that this patch is in global coordinates not
relative to the current transform?

Powered by Google App Engine
This is Rietveld 408576698