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

Unified Diff: Source/Platform/chromium/public/WebFilterOperation.h

Issue 12321021: Merge 142496 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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/Platform/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/Platform/chromium/public/WebFilterOperation.h
===================================================================
--- Source/Platform/chromium/public/WebFilterOperation.h (revision 143484)
+++ Source/Platform/chromium/public/WebFilterOperation.h (working copy)
@@ -49,6 +49,7 @@
FilterTypeDropShadow,
FilterTypeColorMatrix,
FilterTypeZoom,
+ FilterTypeSaturatingBrightness, // Not used in CSS/SVG.
};
FilterType type() const { return m_type; }
@@ -65,7 +66,8 @@
|| m_type == FilterTypeOpacity
|| m_type == FilterTypeBlur
|| m_type == FilterTypeDropShadow
- || m_type == FilterTypeZoom);
+ || m_type == FilterTypeZoom
+ || m_type == FilterTypeSaturatingBrightness);
return m_amount;
}
WebPoint dropShadowOffset() const
@@ -102,6 +104,7 @@
static WebFilterOperation createDropShadowFilter(WebPoint offset, float stdDeviation, WebColor color) { return WebFilterOperation(FilterTypeDropShadow, offset, stdDeviation, color); }
static WebFilterOperation createColorMatrixFilter(SkScalar matrix[20]) { return WebFilterOperation(FilterTypeColorMatrix, matrix); }
static WebFilterOperation createZoomFilter(WebRect rect, int inset) { return WebFilterOperation(FilterTypeZoom, rect, inset); }
+ static WebFilterOperation createSaturatingBrightnessFilter(float amount) { return WebFilterOperation(FilterTypeSaturatingBrightness, amount); }
bool equals(const WebFilterOperation& other) const;
@@ -120,7 +123,8 @@
|| m_type == FilterTypeOpacity
|| m_type == FilterTypeBlur
|| m_type == FilterTypeDropShadow
- || m_type == FilterTypeZoom);
+ || m_type == FilterTypeZoom
+ || m_type == FilterTypeSaturatingBrightness);
m_amount = amount;
}
void setDropShadowOffset(WebPoint offset)
« no previous file with comments | « Source/Platform/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698