|
|
DescriptionAdd a mutex to protect the DWrite calls.
BUG=skia:4479
Committed: https://skia.googlesource.com/skia/+/c7378af961cabef5b77c4dae40d8d3b9c1471a9e
Patch Set 1 #Patch Set 2 : fix formatting #Patch Set 3 : refix tabs #
Total comments: 5
Patch Set 4 : remove stray line #Messages
Total messages: 19 (7 generated)
Description was changed from ========== Add a mutex to protect the DWrite calls. BUG=skia: ========== to ========== Add a mutex to protect the DWrite calls. BUG=skia: ==========
herb@google.com changed reviewers: + bungeman@google.com
The tabs and 8 space indents and over 100 character long comments. I'm not sure why some blocks seem to change to tabs but don't otherwise seem changed. Tools > Options > Text Editor > C/C++ > Tabs
All fixed. PTAL
https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... File src/ports/SkScalerContext_win_dw.cpp (right): https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... src/ports/SkScalerContext_win_dw.cpp:40: class Exclusive { What is this providing us that SkAutoMutexAcquire isn't already? Is the idea to make this more like FCLocker in src/ports/SkFontMgr_fontconfig.cpp? https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... src/ports/SkScalerContext_win_dw.cpp:503: Stray extra line?
Description was changed from ========== Add a mutex to protect the DWrite calls. BUG=skia: ========== to ========== Add a mutex to protect the DWrite calls. BUG=skia:4479 ==========
https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... File src/ports/SkScalerContext_win_dw.cpp (right): https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... src/ports/SkScalerContext_win_dw.cpp:40: class Exclusive { On 2015/10/21 14:44:31, bungeman1 wrote: > What is this providing us that SkAutoMutexAcquire isn't already? Is the idea to > make this more like FCLocker in src/ports/SkFontMgr_fontconfig.cpp? SkAutoMutexAcquire is heavier weight because it always check to see if the mutex is NULL (this is used in some use cases in the code). Since the mutex can not be NULL, then this wrapper can be lighter weight and results in fewer if statements. This pattern has been used in other parts of the code. https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... src/ports/SkScalerContext_win_dw.cpp:503: On 2015/10/21 14:44:31, bungeman1 wrote: > Stray extra line? Done.
The CQ bit was checked by herb@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421433004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421433004/60001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
caryclark@google.com changed reviewers: + caryclark@google.com
lgtm
https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... File src/ports/SkScalerContext_win_dw.cpp (right): https://codereview.chromium.org/1421433004/diff/40001/src/ports/SkScalerConte... src/ports/SkScalerContext_win_dw.cpp:40: class Exclusive { On 2015/10/21 14:54:41, herb_g wrote: > On 2015/10/21 14:44:31, bungeman1 wrote: > > What is this providing us that SkAutoMutexAcquire isn't already? Is the idea > to > > make this more like FCLocker in src/ports/SkFontMgr_fontconfig.cpp? > > SkAutoMutexAcquire is heavier weight because it always check to see if the mutex > is NULL (this is used in some use cases in the code). Since the mutex can not be > NULL, then this wrapper can be lighter weight and results in fewer if > statements. This pattern has been used in other parts of the code. The extra check against NULL is pretty much nothing against the rest of the mutex. In addition, if this is being done in other parts of the code it needs to be factored out instead of adding yet another name for this.
lgtm
The CQ bit was checked by herb@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421433004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421433004/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/c7378af961cabef5b77c4dae40d8d3b9c1471a9e |