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

Issue 1420973005: Refactor glyph selection and positioning (Closed)

Created:
5 years, 2 months ago by herb_g
Modified:
4 years, 8 months ago
CC:
mtklein, reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Extract the glyph picking and placing code. There is a common piece of code which finds and positions glyphs and is used in four places. Some places copied the code, some places added callbacks. Here is a list of code: SkDraw::drawPosText GrAtlasTextContext::internalDrawBMPPosText GrAtlasTextContext::internalDrawDFPosText SkXPSDevice::drawPosText This only extracts the code from SkDraw::drawPosText. I would like to use it in the other three places. I think this code is performance neutral. BUG=skia: Committed: https://skia.googlesource.com/skia/+/f553e4e09cd2baf15fc041daab8a08bd46e352f0

Patch Set 1 #

Patch Set 2 : working passing DrawText gm #

Patch Set 3 : All comparisons matching #

Patch Set 4 : Better consts and start experiment #

Patch Set 5 : working about at parity #

Patch Set 6 : Firstpass done. #

Patch Set 7 : fix pure virtual problem, and the union problem #

Patch Set 8 : noncopyable #

Patch Set 9 : try more modern noncopyable #

Patch Set 10 : experiment with delete copy ctor #

Patch Set 11 : use sk storage #

Patch Set 12 : fix ifdef #

Patch Set 13 : exclude alignof for windows #

Patch Set 14 : make windows happy #

Patch Set 15 : fix comment #

Total comments: 16

Patch Set 16 : remove delete experiment #

Patch Set 17 : fix Ben's comment #

Total comments: 63

Patch Set 18 : address mtklein's comments #

Patch Set 19 : cleanup unused structs and comments #

Total comments: 18

Patch Set 20 : more mtklein comments #

Total comments: 20

Patch Set 21 : clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -100 lines) Patch
M src/core/SkDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +500 lines, -100 lines 0 comments Download

Messages

Total messages: 38 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/80001
5 years, 1 month ago (2015-11-02 14:10:32 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/3926)
5 years, 1 month ago (2015-11-02 14:11:23 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/120001
5 years, 1 month ago (2015-11-02 18:17:30 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/4005) Build-Win-MSVC-x86_64-Debug-Trybot on ...
5 years, 1 month ago (2015-11-02 18:19:46 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/140001
5 years, 1 month ago (2015-11-02 18:24:39 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/4007)
5 years, 1 month ago (2015-11-02 18:27:20 UTC) #12
herb_g
5 years, 1 month ago (2015-11-02 20:21:58 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/280001
5 years, 1 month ago (2015-11-02 20:24:37 UTC) #17
jvanverth1
A couple of off-the-cuff thoughts: - The distance field text renderer uses a slightly modified ...
5 years, 1 month ago (2015-11-02 20:34:45 UTC) #18
bungeman-skia
Some first pass things, I'll take a better look at it later. https://codereview.chromium.org/1420973005/diff/280001/src/core/SkDraw.cpp File src/core/SkDraw.cpp ...
5 years, 1 month ago (2015-11-02 21:09:35 UTC) #19
herb_g
@Ben: thanks for the quick review. Do you think that ProcessPosText could replace your call ...
5 years, 1 month ago (2015-11-02 21:26:50 UTC) #20
joshualitt
On 2015/11/02 21:26:50, herb_g wrote: > @Ben: thanks for the quick review. Do you think ...
5 years, 1 month ago (2015-11-03 20:13:21 UTC) #21
mtklein
https://codereview.chromium.org/1420973005/diff/320001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/320001/src/core/SkDraw.cpp#newcode1733 src/core/SkDraw.cpp:1733: // Calculate a type with the same size and ...
5 years, 1 month ago (2015-11-04 17:54:12 UTC) #23
herb_g
https://codereview.chromium.org/1420973005/diff/320001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/320001/src/core/SkDraw.cpp#newcode1733 src/core/SkDraw.cpp:1733: // Calculate a type with the same size and ...
5 years, 1 month ago (2015-11-04 21:58:43 UTC) #24
mtklein
https://codereview.chromium.org/1420973005/diff/360001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/360001/src/core/SkDraw.cpp#newcode1965 src/core/SkDraw.cpp:1965: virtual void findAndPositionGlyph(const char** text, SkPoint position, How come ...
5 years, 1 month ago (2015-11-05 18:33:08 UTC) #25
herb_g
https://codereview.chromium.org/1420973005/diff/360001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/360001/src/core/SkDraw.cpp#newcode1965 src/core/SkDraw.cpp:1965: virtual void findAndPositionGlyph(const char** text, SkPoint position, On 2015/11/05 ...
5 years, 1 month ago (2015-11-06 17:21:25 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/380001
5 years, 1 month ago (2015-11-06 17:57:52 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-06 18:09:38 UTC) #30
mtklein
just nits https://codereview.chromium.org/1420973005/diff/380001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/380001/src/core/SkDraw.cpp#newcode1794 src/core/SkDraw.cpp:1794: virtual const SkPoint nextPoint() = 0; The ...
5 years, 1 month ago (2015-11-09 16:06:40 UTC) #31
herb_g
https://codereview.chromium.org/1420973005/diff/380001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1420973005/diff/380001/src/core/SkDraw.cpp#newcode1794 src/core/SkDraw.cpp:1794: virtual const SkPoint nextPoint() = 0; On 2015/11/09 16:06:40, ...
5 years, 1 month ago (2015-11-09 16:37:11 UTC) #32
herb_g
PTAL
5 years, 1 month ago (2015-11-09 16:37:26 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420973005/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420973005/400001
5 years, 1 month ago (2015-11-09 16:40:41 UTC) #35
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 1 month ago (2015-11-09 16:40:42 UTC) #36
mtklein
lgtm
5 years, 1 month ago (2015-11-09 16:41:26 UTC) #37
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 16:51:59 UTC) #38
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://skia.googlesource.com/skia/+/f553e4e09cd2baf15fc041daab8a08bd46e352f0

Powered by Google App Engine
This is Rietveld 408576698