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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 181633002: Apply .globalAlpha to SVG-images painted using <canvas> drawImage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. 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
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index d217d6632099ec637575671676f28dc289cb5cb4..0fff8b250123fd44f01d3194bacf4463fa14ffaa 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -157,6 +157,7 @@ public:
TextDrawingModeFlags textDrawingMode() const { return m_paintState->m_textDrawingMode; }
void setAlpha(float alpha) { mutableState()->m_alpha = alpha;}
+ float alpha() const { return m_paintState->m_alpha; }
void setImageInterpolationQuality(InterpolationQuality quality) { mutableState()->m_interpolationQuality = quality; }
InterpolationQuality imageInterpolationQuality() const { return m_paintState->m_interpolationQuality; }
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698