• tschmelcher@chromium.org's avatar
    O2D: · ee383ec4
    tschmelcher@chromium.org authored
    - New APIs:
      - Add a "visible" property to the Layer class to mimick the visible property of the Transform class.
      - Add a method to set an affine transform on Pattern objects so that texture patterns can be transformed independently from the Layers that use them.
      - Add a "paint operators" API for Layers and define four operators (currently only three of them implemented). The previous hard-coded behaviour was equivalent to the BLEND_WITH_TRANSPARENCY operator.
    - Fixes:
      - Replace the "mask" nomenclature with "clip", which is a more standard name.
      - Don't clip alpha-blended layers.
      - Restrict Layer painting to the rectangle defined by the attributes.
      - Set default alpha value to 0.0 instead of 1.0 to match what JavaScript expects.
    
    TEST=loaded O2D and verified all new functionality is working
    BUG=none
    
    Review URL: http://codereview.chromium.org/6255003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72006 0039d316-1c4b-4281-b951-d872f2087c98
    ee383ec4
layer.h 4.98 KB