Changeset 142496 in webkit


Ignore:
Timestamp:
Feb 11, 2013 12:37:51 PM (11 years ago)
Author:
fmalita@chromium.org
Message:

[Chromium] FilterTypeSaturatingBrightness enum
https://bugs.webkit.org/show_bug.cgi?id=109380

Introduce a new WebFilterOperation::FilterType enum (FilterTypeSaturatingBrightness)
to support existing interntal clients which rely on the current saturating brightness
behavior (in preparation of switching to the new brightness implementation).

Reviewed by James Robinson.

  • chromium/public/WebFilterOperation.h:

(WebKit::WebFilterOperation::amount):
(WebKit::WebFilterOperation::createSaturatingBrightnessFilter):
(WebKit::WebFilterOperation::setAmount):

Location:
trunk/Source/Platform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r142388 r142496  
     12013-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
    1172013-02-09  James Robinson  <jamesr@chromium.org>
    218
  • trunk/Source/Platform/chromium/public/WebFilterOperation.h

    r129373 r142496  
    5050        FilterTypeColorMatrix,
    5151        FilterTypeZoom,
     52        FilterTypeSaturatingBrightness, // Not used in CSS/SVG.
    5253    };
    5354
     
    6667                   || m_type == FilterTypeBlur
    6768                   || m_type == FilterTypeDropShadow
    68                    || m_type == FilterTypeZoom);
     69                   || m_type == FilterTypeZoom
     70                   || m_type == FilterTypeSaturatingBrightness);
    6971        return m_amount;
    7072    }
     
    103105    static WebFilterOperation createColorMatrixFilter(SkScalar matrix[20]) { return WebFilterOperation(FilterTypeColorMatrix, matrix); }
    104106    static WebFilterOperation createZoomFilter(WebRect rect, int inset) { return WebFilterOperation(FilterTypeZoom, rect, inset); }
     107    static WebFilterOperation createSaturatingBrightnessFilter(float amount) { return WebFilterOperation(FilterTypeSaturatingBrightness, amount); }
    105108
    106109    bool equals(const WebFilterOperation& other) const;
     
    121124                   || m_type == FilterTypeBlur
    122125                   || m_type == FilterTypeDropShadow
    123                    || m_type == FilterTypeZoom);
     126                   || m_type == FilterTypeZoom
     127                   || m_type == FilterTypeSaturatingBrightness);
    124128        m_amount = amount;
    125129    }
Note: See TracChangeset for help on using the changeset viewer.