|
|
Descriptioncheck for null-layer-paint after prev fix to savelayer ops
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2314073002
Committed: https://skia.googlesource.com/skia/+/6669010af4e6bd30bf05e256daae641dab7ac783
Patch Set 1 #
Total comments: 2
Patch Set 2 : combine layerPaint sections #Messages
Total messages: 20 (11 generated)
Description was changed from ========== check for null-layer-paint after prev fix to savelayer ops BUG=skia: ========== to ========== check for null-layer-paint after prev fix to savelayer ops BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2314073002 ==========
reed@google.com changed reviewers: + mtklein@google.com
The CQ bit was checked by reed@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by reed@google.com
add the previously failed ASAN bot
reed@google.com changed reviewers: + caryclark@google.com
https://codereview.chromium.org/2314073002/diff/1/src/core/SkRecordOpts.cpp File src/core/SkRecordOpts.cpp (right): https://codereview.chromium.org/2314073002/diff/1/src/core/SkRecordOpts.cpp#n... src/core/SkRecordOpts.cpp:124: const uint32_t layerColor = layerPaint ? layerPaint->getColor() : SK_ColorBLACK; How about if (layerPaint) { SkColor layerColor = layerPaint->getColor(); // The layer paint color must have only alpha component. if (SK_ColorTRANSPARENT != SkColorSetA(layerColor, SK_AlphaTRANSPARENT)) { return false; } // The layer paint can not have any effects. if (layerPaint->getPathEffect() || ... ) { return false; } paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); } return true;
https://codereview.chromium.org/2314073002/diff/1/src/core/SkRecordOpts.cpp File src/core/SkRecordOpts.cpp (right): https://codereview.chromium.org/2314073002/diff/1/src/core/SkRecordOpts.cpp#n... src/core/SkRecordOpts.cpp:124: const uint32_t layerColor = layerPaint ? layerPaint->getColor() : SK_ColorBLACK; On 2016/09/06 16:00:53, mtklein wrote: > How about > > if (layerPaint) { > SkColor layerColor = layerPaint->getColor(); > // The layer paint color must have only alpha component. > if (SK_ColorTRANSPARENT != SkColorSetA(layerColor, SK_AlphaTRANSPARENT)) { > return false; > } > > // The layer paint can not have any effects. > if (layerPaint->getPathEffect() || ... ) { > return false; > } > > paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); > } > > return true; Done.
The CQ bit was checked by reed@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by reed@google.com
The CQ bit was checked by reed@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Note for Reviewers: The CQ is waiting for an approval. If you believe that the CL is not ready yet, or if you would like to L-G-T-M with comments then please uncheck the CQ checkbox. Waiting for LGTM from valid reviewer(s) till 2016-09-06 22:50 UTC
lgtm
Message was sent while issue was closed.
Description was changed from ========== check for null-layer-paint after prev fix to savelayer ops BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2314073002 ========== to ========== check for null-layer-paint after prev fix to savelayer ops BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2314073002 Committed: https://skia.googlesource.com/skia/+/6669010af4e6bd30bf05e256daae641dab7ac783 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/6669010af4e6bd30bf05e256daae641dab7ac783 |