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

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

Issue 169283008: Maintain SkPaint in GraphicsContextState. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nuked pointless const Created 6 years, 10 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: Source/platform/graphics/CrossfadeGeneratedImage.cpp
diff --git a/Source/platform/graphics/CrossfadeGeneratedImage.cpp b/Source/platform/graphics/CrossfadeGeneratedImage.cpp
index dcbcabf37772ab321a22d422a73b69cb77252644..cea711af00750a4524d3e554d85d7b0fd9f71cfb 100644
--- a/Source/platform/graphics/CrossfadeGeneratedImage.cpp
+++ b/Source/platform/graphics/CrossfadeGeneratedImage.cpp
@@ -66,7 +66,7 @@ void CrossfadeGeneratedImage::drawCrossfade(GraphicsContext* context)
static_cast<float>(m_crossfadeSize.width()) / fromImageSize.width(),
static_cast<float>(m_crossfadeSize.height()) / fromImageSize.height()));
}
- context->setAlpha(inversePercentage);
+ context->setAlphaAsFloat(inversePercentage);
context->drawImage(m_fromImage, IntPoint());
context->restore();
@@ -77,7 +77,7 @@ void CrossfadeGeneratedImage::drawCrossfade(GraphicsContext* context)
static_cast<float>(m_crossfadeSize.width()) / toImageSize.width(),
static_cast<float>(m_crossfadeSize.height()) / toImageSize.height()));
}
- context->setAlpha(m_percentage);
+ context->setAlphaAsFloat(m_percentage);
context->drawImage(m_toImage, IntPoint(), CompositePlusLighter);
context->restore();

Powered by Google App Engine
This is Rietveld 408576698