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

Issue 1374853004: Fix caching of nvpr glyphs (Closed)

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

Description

Updates nvpr text blobs to not store a direct reference to the per-glyph GPU path object, but rather store a key for looking it up in the resource cache. This allows the cache to purge glyphs when needed. Also indirectly fixes a memory leak that was introduced with nvpr text blobs. BUG=skia: Committed: https://skia.googlesource.com/skia/+/8585dd26bf74edf26a1cd1c31699c03347f78937

Patch Set 1 #

Patch Set 2 : Fix caching as well #

Total comments: 4

Patch Set 3 : Address comments #

Patch Set 4 : rebase #

Patch Set 5 : Accidental build error #

Patch Set 6 : MSVC warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -141 lines) Patch
M include/gpu/GrDrawContext.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrPathRange.h View 1 2 2 chunks +6 lines, -9 lines 0 comments Download
M src/gpu/GrPathRange.cpp View 1 2 3 chunks +16 lines, -9 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.h View 1 2 3 4 5 5 chunks +20 lines, -20 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 3 4 5 16 chunks +103 lines, -72 lines 0 comments Download
M src/gpu/batches/GrDrawPathBatch.h View 1 6 chunks +13 lines, -20 lines 0 comments Download
M src/gpu/batches/GrDrawPathBatch.cpp View 1 5 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
Chris Dalton
This fixes the immediate memory leak. Although, I think there still is an issue that ...
5 years, 2 months ago (2015-10-06 16:31:54 UTC) #2
bsalomon
On 2015/10/06 16:31:54, Chris Dalton wrote: > This fixes the immediate memory leak. > > ...
5 years, 2 months ago (2015-10-06 16:43:04 UTC) #3
Chris Dalton
This patchset also fixes the glyph caching issue. It ended up being more complicated than ...
5 years, 2 months ago (2015-10-07 14:20:43 UTC) #4
bsalomon
mostly looks good, some small things noted inline. https://codereview.chromium.org/1374853004/diff/20001/src/gpu/GrPathRange.h File src/gpu/GrPathRange.h (right): https://codereview.chromium.org/1374853004/diff/20001/src/gpu/GrPathRange.h#newcode152 src/gpu/GrPathRange.h:152: const ...
5 years, 2 months ago (2015-10-07 14:30:54 UTC) #5
Chris Dalton
https://codereview.chromium.org/1374853004/diff/20001/src/gpu/GrPathRange.h File src/gpu/GrPathRange.h (right): https://codereview.chromium.org/1374853004/diff/20001/src/gpu/GrPathRange.h#newcode152 src/gpu/GrPathRange.h:152: const uint32_t fUniqueID; On 2015/10/07 14:30:54, bsalomon wrote: > ...
5 years, 2 months ago (2015-10-07 15:46:20 UTC) #6
bsalomon
lgtm
5 years, 2 months ago (2015-10-07 15:54:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374853004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374853004/40001
5 years, 2 months ago (2015-10-07 16:27:44 UTC) #9
commit-bot: I haz the power
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/3515) Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 2 months ago (2015-10-07 16:28:32 UTC) #11
bsalomon
On 2015/10/07 16:28:32, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 2 months ago (2015-10-08 14:31:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374853004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374853004/60001
5 years, 2 months ago (2015-10-08 14:45:33 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/3603)
5 years, 2 months ago (2015-10-08 14:46:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374853004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374853004/80001
5 years, 2 months ago (2015-10-08 14:49:18 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/3650)
5 years, 2 months ago (2015-10-08 14:51:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374853004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374853004/100001
5 years, 2 months ago (2015-10-08 14:57:15 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 15:04:13 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/8585dd26bf74edf26a1cd1c31699c03347f78937

Powered by Google App Engine
This is Rietveld 408576698