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

Unified Diff: third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp
index 3fd442fa0960702cc8ecd231b4ea5d22aea7856d..9723ca881bb02530354b8ac53958ad63cb055751 100644
--- a/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp
@@ -48,10 +48,10 @@ void CrossfadeGeneratedImage::drawCrossfade(SkCanvas* canvas,
FloatRect toImageRect(FloatPoint(), FloatSize(m_toImage->size()));
FloatRect destRect((FloatPoint()), FloatSize(m_crossfadeSize));
- // TODO(junov): The various effects encoded into paint should probably be applied here
- // instead of inside the layer. This probably faulty behavior was maintained in order
- // to preserve pre-existing behavior while refactoring this code. This should be
- // investigated further. crbug.com/472634
+ // TODO(junov): The various effects encoded into paint should probably be
+ // applied here instead of inside the layer. This probably faulty behavior
+ // was maintained in order to preserve pre-existing behavior while refactoring
+ // this code. This should be investigated further. crbug.com/472634
SkPaint layerPaint;
layerPaint.setXfermode(sk_ref_sp(paint.getXfermode()));
SkAutoCanvasRestore ar(canvas, false);
@@ -62,9 +62,10 @@ void CrossfadeGeneratedImage::drawCrossfade(SkCanvas* canvas,
int imageAlpha = clampedAlphaForBlending(1 - m_percentage);
imagePaint.setAlpha(imageAlpha > 255 ? 255 : imageAlpha);
imagePaint.setAntiAlias(paint.isAntiAlias());
- // TODO(junov): This code should probably be propagating the RespectImageOrientationEnum
- // form CrossfadeGeneratedImage::draw. Code was written this way during refactoring to
- // avoid modifying existing behavior, but this warrants further investigation. crbug.com/472634
+ // TODO(junov): This code should probably be propagating the
+ // RespectImageOrientationEnum from CrossfadeGeneratedImage::draw(). Code was
+ // written this way during refactoring to avoid modifying existing behavior,
+ // but this warrants further investigation. crbug.com/472634
m_fromImage->draw(canvas, imagePaint, destRect, fromImageRect,
DoNotRespectImageOrientation, clampMode);
imagePaint.setXfermodeMode(SkXfermode::kPlus_Mode);

Powered by Google App Engine
This is Rietveld 408576698