0 Replies Latest reply on Apr 21, 2010 3:58 PM by Chet Haase

    [svn:fx-trunk] 15643: Fix for shader-transition effects.

    Chet Haase

      Revision: 15643

      Revision: 15643

      Author:   chaase@adobe.com

      Date:     2010-04-21 15:58:05 -0700 (Wed, 21 Apr 2010)

      Log Message:

      ***********

      Fix for shader-transition effects. Previously, if the local bounds of an object shifted position between states (this can happen with a Group, for example, if its children exceeded its bounds in different ways in the states. In the bug's example, a VScrollBar caused the group to go negative in y, an HScrollBar caused it to go negative in x), then the from/to bitmaps would be mis-matched and you'd get a jumping artifact at the beginning of the effect.

       

      The fix was to get both the bitmap snapshot and the bounds of the object captured from BitmapUtil.getSnapshot(). Then use those bounds to constrain the bitmapFrom object to the bitmapTo bounds.

       

      QE notes: There are 25 Mustella failures from this change. Some are due to a change in the return value from getAffectedProperties (I changed "bitmap" to "bitmapInfo"). Some are due to a fix to avoid clipping the results of the shader to the size of bitmapFrom (it now uses the max of the two bitmaps). So Mustella needs some fixing and some bitmap updating.

      Doc notes: Added parameter to BitmapUtil.getSnapshot() and added a @param doc tag to go along with it.

      Bugs: sdk-25035

      Reviewer: Jason

      Tests run: checkintests, Mustella spark/effects/AnimateShaderTransition|CrossFade|Wipe

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

          http://bugs.adobe.com/jira/browse/sdk-25035

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransiti onShaderInstance.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/BitmapUtil.as