Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Issue 6549050: Fix for GrTextureStripAtlas memory leak (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by robertphillips
Modified:
11 years, 9 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This should fix http://code.google.com/p/chromium/issues/detail?id=151017

Patch Set 1 #

Patch Set 2 : Added comments & cleaned up #

Total comments: 7

Patch Set 3 : Made AddCleanUp non-static & added extra param to callback function #

Patch Set 4 : renamed AddCleanUp -> addCleanUp #

Total comments: 2

Patch Set 5 : removed static ctor call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -21 lines) Patch
M include/gpu/GrContext.h View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.h View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 1 2 3 4 2 chunks +42 lines, -21 lines 0 comments Download

Messages

Total messages: 8
robertphillips
http://codereview.appspot.com/6549050/diff/2001/src/gpu/effects/GrTextureStripAtlas.cpp File src/gpu/effects/GrTextureStripAtlas.cpp (right): http://codereview.appspot.com/6549050/diff/2001/src/gpu/effects/GrTextureStripAtlas.cpp#newcode70 src/gpu/effects/GrTextureStripAtlas.cpp:70: AtlasEntry** temp = gAtlasEntries.push(); With the SkTDArray storing the ...
11 years, 9 months ago (2012-09-21 18:24:08 UTC) #1
bsalomon
http://codereview.appspot.com/6549050/diff/2001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): http://codereview.appspot.com/6549050/diff/2001/include/gpu/GrContext.h#newcode65 include/gpu/GrContext.h:65: typedef void (*PFCleanUpFunc)(const GrContext* context); I think these types ...
11 years, 9 months ago (2012-09-24 13:26:34 UTC) #2
robertphillips
Much cleaner now. Note that 'gAtlasEntries' has entirely gone away. http://codereview.appspot.com/6549050/diff/2001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): http://codereview.appspot.com/6549050/diff/2001/include/gpu/GrContext.h#newcode65 ...
11 years, 9 months ago (2012-09-24 16:29:34 UTC) #3
bsalomon
Cool, it seems much simpler now. LGTM except for Q about static init. https://codereview.appspot.com/6549050/diff/1007/src/gpu/effects/GrTextureStripAtlas.cpp File ...
11 years, 9 months ago (2012-09-24 16:42:55 UTC) #4
robertphillips
https://codereview.appspot.com/6549050/diff/1007/src/gpu/effects/GrTextureStripAtlas.cpp File src/gpu/effects/GrTextureStripAtlas.cpp (right): https://codereview.appspot.com/6549050/diff/1007/src/gpu/effects/GrTextureStripAtlas.cpp#newcode22 src/gpu/effects/GrTextureStripAtlas.cpp:22: GrTHashTable<GrTextureStripAtlas::AtlasEntry, I believe the new approach is Chrome-acceptable (given ...
11 years, 9 months ago (2012-09-24 18:07:35 UTC) #5
robertphillips
Note that - creating the GrTHashTable in the GetCache method causes problems since (at least ...
11 years, 9 months ago (2012-09-24 18:15:34 UTC) #6
bsalomon
LGTM
11 years, 9 months ago (2012-09-24 19:11:58 UTC) #7
robertphillips
11 years, 9 months ago (2012-09-24 19:34:28 UTC) #8
committed as r5648
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b