Changeset 142496 in webkit
- Timestamp:
- Feb 11, 2013 12:37:51 PM (11 years ago)
- Location:
- trunk/Source/Platform
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r142388 r142496 1 2013-02-10 Florin Malita <fmalita@chromium.org> 2 3 [Chromium] FilterTypeSaturatingBrightness enum 4 https://bugs.webkit.org/show_bug.cgi?id=109380 5 6 Introduce a new WebFilterOperation::FilterType enum (FilterTypeSaturatingBrightness) 7 to support existing interntal clients which rely on the current saturating brightness 8 behavior (in preparation of switching to the new brightness implementation). 9 10 Reviewed by James Robinson. 11 12 * chromium/public/WebFilterOperation.h: 13 (WebKit::WebFilterOperation::amount): 14 (WebKit::WebFilterOperation::createSaturatingBrightnessFilter): 15 (WebKit::WebFilterOperation::setAmount): 16 1 17 2013-02-09 James Robinson <jamesr@chromium.org> 2 18 -
trunk/Source/Platform/chromium/public/WebFilterOperation.h
r129373 r142496 50 50 FilterTypeColorMatrix, 51 51 FilterTypeZoom, 52 FilterTypeSaturatingBrightness, // Not used in CSS/SVG. 52 53 }; 53 54 … … 66 67 || m_type == FilterTypeBlur 67 68 || m_type == FilterTypeDropShadow 68 || m_type == FilterTypeZoom); 69 || m_type == FilterTypeZoom 70 || m_type == FilterTypeSaturatingBrightness); 69 71 return m_amount; 70 72 } … … 103 105 static WebFilterOperation createColorMatrixFilter(SkScalar matrix[20]) { return WebFilterOperation(FilterTypeColorMatrix, matrix); } 104 106 static WebFilterOperation createZoomFilter(WebRect rect, int inset) { return WebFilterOperation(FilterTypeZoom, rect, inset); } 107 static WebFilterOperation createSaturatingBrightnessFilter(float amount) { return WebFilterOperation(FilterTypeSaturatingBrightness, amount); } 105 108 106 109 bool equals(const WebFilterOperation& other) const; … … 121 124 || m_type == FilterTypeBlur 122 125 || m_type == FilterTypeDropShadow 123 || m_type == FilterTypeZoom); 126 || m_type == FilterTypeZoom 127 || m_type == FilterTypeSaturatingBrightness); 124 128 m_amount = amount; 125 129 }
Note: See TracChangeset
for help on using the changeset viewer.