- DALI_ASSERT_ALWAYS( mGaussianBlurView.size()>idx );
- mGaussianBlurView[idx] = Toolkit::GaussianBlurView::New( GAUSSIAN_BLUR_DEFAULT_NUM_SAMPLES+GAUSSIAN_BLUR_NUM_SAMPLES_INCREMENTATION*idx,
- GAUSSIAN_BLUR_BELL_CURVE_WIDTH + GAUSSIAN_BLUR_BELL_CURVE_WIDTH_INCREMENTATION*static_cast<float>(idx),
- GAUSSIAN_BLUR_RENDER_TARGET_PIXEL_FORMAT,
- GAUSSIAN_BLUR_DOWNSAMPLE_WIDTH_SCALE, GAUSSIAN_BLUR_DOWNSAMPLE_HEIGHT_SCALE, true );
- mGaussianBlurView[idx].SetParentOrigin(ParentOrigin::CENTER);
- mGaussianBlurView[idx].SetSize(mTargetSize);
- mGaussianBlurView[idx].SetUserImageAndOutputRenderTarget( image, mBlurredImage[idx] );
- if( idx == mBlurLevels-1 )
+ DALI_ASSERT_ALWAYS(mGaussianBlurView.size() > idx);
+ mGaussianBlurView[idx] = Toolkit::GaussianBlurView::New(GAUSSIAN_BLUR_DEFAULT_NUM_SAMPLES + GAUSSIAN_BLUR_NUM_SAMPLES_INCREMENTATION * idx,
+ GAUSSIAN_BLUR_BELL_CURVE_WIDTH + GAUSSIAN_BLUR_BELL_CURVE_WIDTH_INCREMENTATION * static_cast<float>(idx),
+ GAUSSIAN_BLUR_RENDER_TARGET_PIXEL_FORMAT,
+ GAUSSIAN_BLUR_DOWNSAMPLE_WIDTH_SCALE,
+ GAUSSIAN_BLUR_DOWNSAMPLE_HEIGHT_SCALE,
+ true);
+ mGaussianBlurView[idx].SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ mGaussianBlurView[idx].SetProperty(Actor::Property::SIZE, mTargetSize);
+ Stage::GetCurrent().Add(mGaussianBlurView[idx]);
+
+ mGaussianBlurView[idx].SetUserImageAndOutputRenderTarget(texture, mBlurredImage[idx]);
+
+ mGaussianBlurView[idx].ActivateOnce();
+ if(idx == mBlurLevels - 1)