equal
deleted
inserted
replaced
27 #ifdef ALF_DEBUG_TRACK_DRAWING |
27 #ifdef ALF_DEBUG_TRACK_DRAWING |
28 #include "alfcommanddebug.h" |
28 #include "alfcommanddebug.h" |
29 #endif |
29 #endif |
30 |
30 |
31 |
31 |
32 |
32 // From MMP macro nowadays |
33 #define ALF_DRAW_FRAME_BEFORE_END_CALLBACK |
33 //#define ALF_DRAW_FRAME_BEFORE_END_CALLBACK |
34 |
34 |
35 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
36 // constructor |
36 // constructor |
37 // |
37 // |
38 // --------------------------------------------------------------------------- |
38 // --------------------------------------------------------------------------- |
255 #ifdef ALF_DRAW_FRAME_BEFORE_END_CALLBACK |
255 #ifdef ALF_DRAW_FRAME_BEFORE_END_CALLBACK |
256 { |
256 { |
257 CAlfBridge* bridge = dynamic_cast<CAlfBridge*>(iObserver); |
257 CAlfBridge* bridge = dynamic_cast<CAlfBridge*>(iObserver); |
258 if (bridge) |
258 if (bridge) |
259 { |
259 { |
260 bridge->iHuiEnv->RefreshCallBack((TAny*)bridge->iHuiEnv); |
260 bridge->RefreshNow(iMessages[iStatus.Int()].iInt2); |
261 } |
261 } |
262 } // fall through |
262 } // fall through |
263 #endif |
263 #endif |
264 case EAlfRequestCommandReadNotification: |
264 case EAlfRequestCommandReadNotification: |
265 case EAlfReleaseTemporaryChunk: |
265 case EAlfReleaseTemporaryChunk: |
303 __ALFLOGSTRING1("CAlfStreamerBridge:: Queue op %d", operation2 ); |
303 __ALFLOGSTRING1("CAlfStreamerBridge:: Queue op %d", operation2 ); |
304 #endif |
304 #endif |
305 switch ( operation2 ) |
305 switch ( operation2 ) |
306 { |
306 { |
307 case EAlfRequestCommitBatch: |
307 case EAlfRequestCommitBatch: |
|
308 #ifdef ALF_DRAW_FRAME_BEFORE_END_CALLBACK |
|
309 { |
|
310 CAlfBridge* bridge = dynamic_cast<CAlfBridge*>(iObserver); |
|
311 if (bridge) |
|
312 { |
|
313 bridge->RefreshNow(iMessages[iQueue[0]].iInt2); |
|
314 } |
|
315 } // fall through |
|
316 #endif |
308 case EAlfRequestCommandReadNotification: |
317 case EAlfRequestCommandReadNotification: |
309 case EAlfReleaseTemporaryChunk: |
318 case EAlfReleaseTemporaryChunk: |
310 { |
319 { |
311 if (iBatchObserver) |
320 if (iBatchObserver) |
312 { |
321 { |
363 // --------------------------------------------------------------------------- |
372 // --------------------------------------------------------------------------- |
364 // StartNewBlock |
373 // StartNewBlock |
365 // |
374 // |
366 // --------------------------------------------------------------------------- |
375 // --------------------------------------------------------------------------- |
367 // |
376 // |
368 void CAlfStreamerBridge::StartNewBlock() |
377 void CAlfStreamerBridge::StartNewBlock(TBool aCompositionModified) |
369 { |
378 { |
370 // Queue marker. Basically we could use one new member to assert that there can |
379 // Queue marker. Basically we could use one new member to assert that there can |
371 // be only one marker |
380 // be only one marker |
372 //__ALFLOGSTRING1("CAlfStreamerBridge:: Request command read notification, swap active: %d", iSwapActive ); |
381 //__ALFLOGSTRING1("CAlfStreamerBridge:: Request command read notification, swap active: %d", iSwapActive ); |
373 AddData(EAlfRequestCommitBatch,0,0,0); |
382 AddData(EAlfRequestCommitBatch,0,aCompositionModified,0); |
374 } |
383 } |
375 |
384 |
376 // --------------------------------------------------------------------------- |
385 // --------------------------------------------------------------------------- |
377 // RequestCommandReadNotification |
386 // RequestCommandReadNotification |
378 // |
387 // |