equal
deleted
inserted
replaced
25 #include "glxhdmicontroller.h" |
25 #include "glxhdmicontroller.h" |
26 |
26 |
27 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
28 // NewLC |
28 // NewLC |
29 // ----------------------------------------------------------------------------- |
29 // ----------------------------------------------------------------------------- |
30 EXPORT_C CGlxHdmiController* CGlxHdmiController::NewL(TRect aRect ,TBool aEfectsOn) |
30 EXPORT_C CGlxHdmiController* CGlxHdmiController::NewL(TRect aRect) |
31 { |
31 { |
32 TRACER("CGlxHdmiController* CGlxHdmiController::NewL()"); |
32 TRACER("CGlxHdmiController* CGlxHdmiController::NewL()"); |
33 CGlxHdmiController* self = new (ELeave) CGlxHdmiController(aRect,aEfectsOn); |
33 CGlxHdmiController* self = new (ELeave) CGlxHdmiController(aRect); |
34 CleanupStack::PushL(self); |
34 CleanupStack::PushL(self); |
35 self->ConstructL(); |
35 self->ConstructL(); |
36 CleanupStack::Pop(self); |
36 CleanupStack::Pop(self); |
37 return self; |
37 return self; |
38 } |
38 } |
164 GLX_LOG_INFO("CGlxHdmiController::ShiftToPostingMode() - 2"); |
164 GLX_LOG_INFO("CGlxHdmiController::ShiftToPostingMode() - 2"); |
165 iSurfaceUpdater->ShiftToPostingMode(); |
165 iSurfaceUpdater->ShiftToPostingMode(); |
166 } |
166 } |
167 } |
167 } |
168 |
168 |
169 |
|
170 // ----------------------------------------------------------------------------- |
|
171 // FadeSurface |
|
172 // ----------------------------------------------------------------------------- |
|
173 EXPORT_C void CGlxHdmiController::FadeSurface(TBool aFadeInOut) |
|
174 { |
|
175 TRACER("CGlxHdmiController::FadeSurface()"); |
|
176 if (iSurfaceUpdater) |
|
177 { |
|
178 iSurfaceUpdater->FadeTheSurface(aFadeInOut); |
|
179 } |
|
180 } |
|
181 |
|
182 // ----------------------------------------------------------------------------- |
169 // ----------------------------------------------------------------------------- |
183 // Constructor |
170 // Constructor |
184 // ----------------------------------------------------------------------------- |
171 // ----------------------------------------------------------------------------- |
185 CGlxHdmiController::CGlxHdmiController(TRect aRect,TBool aEffectsOn): |
172 CGlxHdmiController::CGlxHdmiController(TRect aRect): |
186 iFsBitmap(NULL), |
173 iFsBitmap(NULL), |
187 iStoredImagePath(NULL), |
174 iStoredImagePath(NULL), |
188 iRect(aRect), |
175 iRect(aRect) |
189 iEffectsOn(aEffectsOn) |
|
190 { |
176 { |
191 TRACER("CGlxHdmiController::CGlxHdmiController()"); |
177 TRACER("CGlxHdmiController::CGlxHdmiController()"); |
192 // Implement nothing here |
178 // Implement nothing here |
193 } |
179 } |
194 |
180 |
241 // ----------------------------------------------------------------------------- |
227 // ----------------------------------------------------------------------------- |
242 void CGlxHdmiController::CreateSurfaceUpdaterL(const TDesC& aImageFile) |
228 void CGlxHdmiController::CreateSurfaceUpdaterL(const TDesC& aImageFile) |
243 { |
229 { |
244 TRACER("CGlxHdmiController::CreateSurfaceUpdater()"); |
230 TRACER("CGlxHdmiController::CreateSurfaceUpdater()"); |
245 iSurfaceUpdater = CGlxHdmiSurfaceUpdater::NewL(iHdmiContainer->GetWindow(), |
231 iSurfaceUpdater = CGlxHdmiSurfaceUpdater::NewL(iHdmiContainer->GetWindow(), |
246 aImageFile, iFsBitmap,iHdmiContainer, |
232 aImageFile, iFsBitmap,iHdmiContainer); |
247 iEffectsOn); |
|
248 iHdmiContainer->DrawNow(); |
233 iHdmiContainer->DrawNow(); |
249 } |
234 } |
250 |
235 |
251 // ----------------------------------------------------------------------------- |
236 // ----------------------------------------------------------------------------- |
252 // StoreImageInfoL |
237 // StoreImageInfoL |