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

Issue 23120004: Change Atlas recycling to track current flush count and recycle if Atlas not used in current flush. (Closed)

Created:
7 years, 4 months ago by jvanverth1
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Change Atlas recycling to track current flush count and recycle if Atlas not used in current flush. BUG= Committed: http://code.google.com/p/skia/source/detail?r=10777

Patch Set 1 #

Patch Set 2 : Disable font cache stats #

Total comments: 3

Patch Set 3 : Remove global variable hack #

Patch Set 4 : Revised to use a FlushToken to track which flush an atlas was last accessed in. #

Patch Set 5 : Disable font cache stats; clean up whitespace. #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -39 lines) Patch
M include/gpu/GrContext.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrAtlas.h View 1 2 3 4 5 2 chunks +11 lines, -17 lines 0 comments Download
M src/gpu/GrAtlas.cpp View 1 2 3 4 5 5 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/GrTextStrike.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrTextStrike.cpp View 1 2 3 4 5 5 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jvanverth1
No perf hit or gm change on Mac with this. Big change is are the ...
7 years, 4 months ago (2013-08-13 20:58:09 UTC) #1
bsalomon
https://codereview.chromium.org/23120004/diff/4001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/23120004/diff/4001/include/gpu/GrContext.h#newcode827 include/gpu/GrContext.h:827: uint64_t getFlushCount() const { return fFlushCount; } I think ...
7 years, 4 months ago (2013-08-13 21:18:28 UTC) #2
jvanverth1
https://codereview.chromium.org/23120004/diff/4001/src/gpu/GrTextStrike.cpp File src/gpu/GrTextStrike.cpp (right): https://codereview.chromium.org/23120004/diff/4001/src/gpu/GrTextStrike.cpp#newcode184 src/gpu/GrTextStrike.cpp:184: static uint64_t gCurrentFlushCount = 0; On 2013/08/13 21:18:28, bsalomon ...
7 years, 4 months ago (2013-08-14 13:24:32 UTC) #3
jvanverth1
Added a FlushToken to track the flush state for a given Atlas. This can be ...
7 years, 4 months ago (2013-08-14 18:52:48 UTC) #4
bsalomon
https://codereview.chromium.org/23120004/diff/29001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/23120004/diff/29001/src/gpu/GrDrawTarget.h#newcode631 src/gpu/GrDrawTarget.h:631: bool isCurrent() { return NULL != fDrawTarget && fDrawTarget->isCurrentFlush(fFlushID); ...
7 years, 4 months ago (2013-08-14 19:04:27 UTC) #5
jvanverth1
https://codereview.chromium.org/23120004/diff/29001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/23120004/diff/29001/src/gpu/GrDrawTarget.h#newcode631 src/gpu/GrDrawTarget.h:631: bool isCurrent() { return NULL != fDrawTarget && fDrawTarget->isCurrentFlush(fFlushID); ...
7 years, 4 months ago (2013-08-15 14:49:57 UTC) #6
bsalomon
I like the new name (DrawToken)! lgtm
7 years, 4 months ago (2013-08-15 14:59:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/23120004/42001
7 years, 4 months ago (2013-08-16 13:17:46 UTC) #8
commit-bot: I haz the power
7 years, 4 months ago (2013-08-16 15:53:53 UTC) #9
Message was sent while issue was closed.
Change committed as 10777

Powered by Google App Engine
This is Rietveld 408576698