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

Issue 1157683006: Refactor GrGpu path rendering functions to GrPathRendering (Closed)

Created:
5 years, 7 months ago by Kimmo Kinnunen
Modified:
5 years, 6 months ago
Reviewers:
Chris Dalton, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor GrGpu path rendering functions to GrPathRendering GrGpu, GrGLGpu, GrPathRendering, GrGLPathRendering all duplicated each others' path rendering related member functions. Make GrPathRending the logical extension of GrGpu by removing the methods from GrGpu. Similarly to the GL variants. Changes includes and forward declarations due to removing GrDrawTarget.h include from GrGpu.h. This was necessary due to GrDrawTarget.h including GrPathRendering.h, and now GrPathRendering.h includes GrGpu.h. (Also GrGpu.h does not need GrDrawTarget.h anymore). Very slight runtime improvement on x86_64: desk_fontwipe.skp_1 836us -> 841us 1.01x desk_silkfinance.skp_1 2.01ms -> 2.01ms 1x desk_forecastio.skp_1 7.03ms -> 7.05ms 1x desk_weather.skp_1 3.74ms -> 3.74ms 1x desk_twitter.skp_1 8.02ms -> 8.01ms 1x desk_mapsvg.skp_1 5.24ms -> 5.23ms 1x desk_pokemonwiki.skp_1 7.06ms -> 7.03ms 1x desk_sfgate.skp_1 3.19ms -> 3.17ms 1x tabl_cuteoverload.skp_1 2.66ms -> 2.64ms 0.99x ... tabl_transformice.skp_1 3.06ms -> 2.98ms 0.98x tabl_googlecalendar.skp_1 11.3ms -> 11ms 0.97x tabl_gamedeksiam.skp_1 12.8ms -> 12.4ms 0.97x desk_samoasvg.skp_1 10.6ms -> 10.3ms 0.97x tabl_worldjournal.skp_1 4.44ms -> 4.3ms 0.97x Committed: https://skia.googlesource.com/skia/+/cabe20cafd5f091a68bbc2c0c48755ba9b61b0b7

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebase, remove include ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -174 lines) Patch
M src/effects/SkLightingImageFilter.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrBatchFontCache.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrBatchTarget.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 5 chunks +14 lines, -37 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 2 chunks +1 line, -26 lines 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrPathRange.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrPathRendering.h View 1 2 3 2 chunks +60 lines, -7 lines 0 comments Download
M src/gpu/GrPipeline.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrResourceProvider.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrTargetCommands.cpp View 1 2 3 3 chunks +10 lines, -17 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 1 chunk +0 lines, -37 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 3 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 9 chunks +41 lines, -20 lines 0 comments Download
M src/gpu/gl/GrGLProgram.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Kimmo Kinnunen
How about this?
5 years, 7 months ago (2015-05-27 10:39:18 UTC) #2
Chris Dalton
I definitely like this patch. It's interesting to see that going from ~3 levels of ...
5 years, 6 months ago (2015-05-28 08:59:34 UTC) #3
bsalomon
Seems like a nice change to me. Curious where all the seemingly unrelated extra includes ...
5 years, 6 months ago (2015-05-28 14:03:55 UTC) #4
Kimmo Kinnunen
On 2015/05/28 14:03:55, bsalomon wrote: > Seems like a nice change to me. Curious where ...
5 years, 6 months ago (2015-05-29 04:59:10 UTC) #5
bsalomon
On 2015/05/29 04:59:10, Kimmo Kinnunen wrote: > On 2015/05/28 14:03:55, bsalomon wrote: > > Seems ...
5 years, 6 months ago (2015-05-29 13:54:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1157683006/60001
5 years, 6 months ago (2015-06-01 08:24:00 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-01 08:37:31 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/cabe20cafd5f091a68bbc2c0c48755ba9b61b0b7

Powered by Google App Engine
This is Rietveld 408576698