+#include <dali/public-api/animation/constraints.h>
+#include <dali/public-api/common/stage.h>
+#include <dali/public-api/object/type-registry.h>
+#include <dali/public-api/render-tasks/render-task-list.h>
+#include <dali/integration-api/debug.h>
// TODO:
// pixel format / size - set from JSON
// aspect ratio property needs to be able to be constrained also for cameras, not possible currently. Therefore changing aspect ratio of GaussianBlurView won't currently work
// TODO:
// pixel format / size - set from JSON
// aspect ratio property needs to be able to be constrained also for cameras, not possible currently. Therefore changing aspect ratio of GaussianBlurView won't currently work
const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f;
const char* const GAUSSIAN_BLUR_FRAGMENT_SOURCE =
const float ARBITRARY_FIELD_OF_VIEW = Math::PI / 4.0f;
const char* const GAUSSIAN_BLUR_FRAGMENT_SOURCE =
- "uniform vec2 uSampleOffsets[NUM_SAMPLES];\n"
- "uniform float uSampleWeights[NUM_SAMPLES];\n"
+ "uniform mediump vec2 uSampleOffsets[NUM_SAMPLES];\n"
+ "uniform mediump float uSampleWeights[NUM_SAMPLES];\n"
bool blurUserImage)
: Control( CONTROL_BEHAVIOUR_NONE )
, mNumSamples(numSamples)
bool blurUserImage)
: Control( CONTROL_BEHAVIOUR_NONE )
, mNumSamples(numSamples)
, mPixelFormat(renderTargetPixelFormat)
, mDownsampleWidthScale(downsampleWidthScale)
, mDownsampleHeightScale(downsampleHeightScale)
, mDownsampledWidth( 0.0f )
, mDownsampledHeight( 0.0f )
, mBlurUserImage( blurUserImage )
, mPixelFormat(renderTargetPixelFormat)
, mDownsampleWidthScale(downsampleWidthScale)
, mDownsampleHeightScale(downsampleHeightScale)
, mDownsampledWidth( 0.0f )
, mDownsampledHeight( 0.0f )
, mBlurUserImage( blurUserImage )
, mBackgroundColor( Color::BLACK )
, mTargetSize(Vector2::ZERO)
, mLastSize(Vector2::ZERO)
, mBackgroundColor( Color::BLACK )
, mTargetSize(Vector2::ZERO)
, mLastSize(Vector2::ZERO)