equal
deleted
inserted
replaced
330 #ifdef HUIFX_TRACE |
330 #ifdef HUIFX_TRACE |
331 RDebug::Print(_L("CHuiFxEngine::AddEffectL - 0x%x "), aEffect); |
331 RDebug::Print(_L("CHuiFxEngine::AddEffectL - 0x%x "), aEffect); |
332 #endif // #ifdef HUIFX_TRACE |
332 #endif // #ifdef HUIFX_TRACE |
333 |
333 |
334 iActiveEffects.AppendL(aEffect); |
334 iActiveEffects.AppendL(aEffect); |
335 |
|
336 // Performance improvement, but this would be better to be a special hint param in the fxml |
|
337 if (aEffect && FxmlUsesInput1(*aEffect)) |
|
338 { |
|
339 TInt flags = aEffect->EffectFlags(); |
|
340 flags |= KHuiFxOpaqueHint; |
|
341 aEffect->SetEffectFlags(flags); |
|
342 } |
|
343 } |
335 } |
344 |
336 |
345 EXPORT_C void CHuiFxEngine::RemoveEffect(CHuiFxEffect* aEffect) |
337 EXPORT_C void CHuiFxEngine::RemoveEffect(CHuiFxEffect* aEffect) |
346 { |
338 { |
347 #ifdef HUIFX_TRACE |
339 #ifdef HUIFX_TRACE |
370 case EReferencePointDisplayHeight: |
362 case EReferencePointDisplayHeight: |
371 case EReferencePointDisplayBottom: |
363 case EReferencePointDisplayBottom: |
372 { |
364 { |
373 CHuiDisplay* display = &CHuiStatic::Env().PrimaryDisplay(); |
365 CHuiDisplay* display = &CHuiStatic::Env().PrimaryDisplay(); |
374 return display->VisibleArea().Size().iHeight; // was DefaultRenderbuffer()->Size().iHeight |
366 return display->VisibleArea().Size().iHeight; // was DefaultRenderbuffer()->Size().iHeight |
|
367 } |
|
368 case EReferencePointDisplayHeightMinusVisualTop: |
|
369 { |
|
370 CHuiDisplay* display = &CHuiStatic::Env().PrimaryDisplay(); |
|
371 TReal32 height = display->VisibleArea().Size().iHeight; // was DefaultRenderbuffer()->Size().iHeight |
|
372 return height; |
375 } |
373 } |
376 default: |
374 default: |
377 break; |
375 break; |
378 } |
376 } |
379 // display left and top return 0 |
377 // display left and top return 0 |
590 return iLowGraphicsMemoryMode; |
588 return iLowGraphicsMemoryMode; |
591 } |
589 } |
592 |
590 |
593 TBool CHuiFxEngine::HasActiveEffects() const |
591 TBool CHuiFxEngine::HasActiveEffects() const |
594 { |
592 { |
|
593 // Don't report active effects if in SW-rendering mode |
|
594 if(iLowGraphicsMemoryMode) // != Normal |
|
595 { |
|
596 return EFalse; |
|
597 } |
595 return iActiveEffects.Count() > 0; |
598 return iActiveEffects.Count() > 0; |
596 } |
599 } |
597 |
600 |
598 void CHuiFxEngine::ClearCache() |
601 void CHuiFxEngine::ClearCache() |
599 { |
602 { |