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

Issue 828183002: Remove static declared SymbolDictCache. (Closed)

Created:
5 years, 11 months ago by Bo Xu
Modified:
5 years, 11 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove static declared SymbolDictCache. This is a follow up CL on https://codereview.chromium.org/761313004/ BUG=https://code.google.com/p/pdfium/issues/detail?id=93 R=brucedawson@chromium.org, tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/17b5cf451cfcd5ec614d1d4e1afd8daa8b5d8699

Patch Set 1 #

Total comments: 1

Patch Set 2 : #include #

Total comments: 2

Patch Set 3 : using -> #

Total comments: 4

Patch Set 4 : #include <utility> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M core/src/fxcodec/codec/codec_int.h View 1 3 chunks +3 lines, -1 line 0 comments Download
M core/src/fxcodec/codec/fx_codec_jbig.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_Context.h View 1 2 3 4 chunks +5 lines, -2 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_Context.cpp View 1 2 6 chunks +13 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Bo Xu
Hi all, please take a look at this CL. Besides removing the static variable, also ...
5 years, 11 months ago (2014-12-31 22:02:05 UTC) #2
brucedawson
I definitely prefer this solution to mine -- getting rid of globals entirely is preferable. ...
5 years, 11 months ago (2014-12-31 23:00:10 UTC) #3
Bo Xu
https://codereview.chromium.org/828183002/diff/20001/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/828183002/diff/20001/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode810 core/src/fxcodec/jbig2/JBig2_Context.cpp:810: (*m_pSymbolDictCache).begin(); it != (*m_pSymbolDictCache).end(); ++it) { On 2014/12/31 23:00:10, ...
5 years, 11 months ago (2015-01-01 00:04:39 UTC) #4
Tom Sepez
https://codereview.chromium.org/828183002/diff/40001/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/828183002/diff/40001/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode839 core/src/fxcodec/jbig2/JBig2_Context.cpp:839: if (value && kSymbolDictCacheMaxSize > 0) { nit: it ...
5 years, 11 months ago (2015-01-01 00:43:36 UTC) #5
Bo Xu
https://codereview.chromium.org/828183002/diff/40001/core/src/fxcodec/jbig2/JBig2_Context.cpp File core/src/fxcodec/jbig2/JBig2_Context.cpp (right): https://codereview.chromium.org/828183002/diff/40001/core/src/fxcodec/jbig2/JBig2_Context.cpp#newcode839 core/src/fxcodec/jbig2/JBig2_Context.cpp:839: if (value && kSymbolDictCacheMaxSize > 0) { On 2015/01/01 ...
5 years, 11 months ago (2015-01-01 00:53:27 UTC) #6
brucedawson
lgtm
5 years, 11 months ago (2015-01-02 21:16:46 UTC) #7
jab
Thank you for doing this.
5 years, 11 months ago (2015-01-05 16:47:09 UTC) #8
Tom Sepez
> core/src/fxcodec/jbig2/JBig2_Context.cpp:839: if (value && > kSymbolDictCacheMaxSize > 0) { > On 2015/01/01 00:43:36, Tom ...
5 years, 11 months ago (2015-01-05 18:16:29 UTC) #9
Bo Xu
5 years, 11 months ago (2015-01-05 18:48:32 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
17b5cf451cfcd5ec614d1d4e1afd8daa8b5d8699 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698