Commit 1f05612c081e0cf2b88e822ffc9de15c156dfb0c

Authored by David Steele
1 parent 40f1a23d

Updated update area of motion blur actors

Change-Id: I00569640bd616053b8473036e276d3d19e1c92be
examples/motion-blur/motion-blur-example.cpp
... ... @@ -201,11 +201,13 @@ public:
201 201 mMotionBlurActorUpdateSize = Size(std::max(mMotionBlurActorSize.x, mMotionBlurActorSize.y), std::max(mMotionBlurActorSize.x, mMotionBlurActorSize.y));
202 202 mMotionBlurActorSize = Size(std::min(mMotionBlurActorSize.x, mMotionBlurActorSize.y), std::min(mMotionBlurActorSize.x, mMotionBlurActorSize.y));
203 203  
  204 + mMotionBlurActorUpdateSize = mMotionBlurActorSize * 1.25f;
  205 +
204 206 mMotionBlurEffect = CreateMotionBlurEffect();
205 207 mMotionBlurImageView = ImageView::New();
206 208 SetImageFittedInBox(mMotionBlurImageView, mMotionBlurEffect, MOTION_BLUR_ACTOR_IMAGE1, mMotionBlurActorSize.x, mMotionBlurActorSize.y);
207 209 mMotionBlurImageView.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
208   - mMotionBlurImageView.SetProperty(Actor::Property::SIZE, mMotionBlurActorUpdateSize);
  210 + mMotionBlurImageView.SetProperty(Actor::Property::SIZE, mMotionBlurActorSize);
209 211 mMotionBlurImageView.SetProperty(Actor::Property::UPDATE_AREA_HINT, Vector4(0, 0, mMotionBlurActorUpdateSize.width, mMotionBlurActorUpdateSize.height));
210 212  
211 213 mContentLayer.Add(mMotionBlurImageView);
... ...
examples/motion-stretch/motion-stretch-example.cpp
... ... @@ -182,7 +182,8 @@ public:
182 182 mMotionStretchImageView.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
183 183 mMotionStretchImageView.SetProperty(Actor::Property::SIZE, Vector2(MOTION_STRETCH_ACTOR_WIDTH, MOTION_STRETCH_ACTOR_HEIGHT));
184 184 // Add stretch padding
185   - mMotionStretchImageView.SetProperty(Actor::Property::UPDATE_AREA_HINT, Vector4(0, 0, MOTION_STRETCH_ACTOR_WIDTH + 32, MOTION_STRETCH_ACTOR_HEIGHT + 32));
  185 +
  186 + mMotionStretchImageView.SetProperty(Actor::Property::UPDATE_AREA_HINT, Vector4(0, 0, MOTION_STRETCH_ACTOR_WIDTH, MOTION_STRETCH_ACTOR_HEIGHT)*1.25f);
186 187  
187 188 mContentLayer.Add(mMotionStretchImageView);
188 189  
... ...