equal
deleted
inserted
replaced
66 CleanupStack::PushL(commands); |
66 CleanupStack::PushL(commands); |
67 |
67 |
68 CHuiCanvasCommandBuffer* newBuffer = new(ELeave) CHuiCanvasCommandBuffer; |
68 CHuiCanvasCommandBuffer* newBuffer = new(ELeave) CHuiCanvasCommandBuffer; |
69 CleanupStack::PushL(newBuffer); |
69 CleanupStack::PushL(newBuffer); |
70 newBuffer->iCommands = commands; |
70 newBuffer->iCommands = commands; |
71 if (iCanvasVisual && iCanvasVisual->Display()) |
71 |
|
72 // the orientation will be defined by the commandbuffer |
|
73 /*if (iCanvasVisual && iCanvasVisual->Display()) |
72 { |
74 { |
73 newBuffer->iOrientation = iCanvasVisual->Display()->Orientation(); |
75 newBuffer->iOrientation = iCanvasVisual->Display()->Orientation(); |
74 } |
76 }*/ |
|
77 |
75 iCommandBuffers.AppendL( newBuffer); |
78 iCommandBuffers.AppendL( newBuffer); |
76 CleanupStack::Pop(2, commands); |
79 CleanupStack::Pop(2, commands); |
77 |
80 |
78 RequestContinueRefresh(); |
81 RequestContinueRefresh(); |
79 } |
82 } |
238 } |
241 } |
239 } |
242 } |
240 |
243 |
241 return EFalse; |
244 return EFalse; |
242 } |
245 } |
|
246 |
|
247 |
|
248 TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation) |
|
249 { |
|
250 TInt bufferCount = iCommandBuffers.Count(); |
|
251 RRegion tempRegion; |
|
252 |
|
253 for (TInt cb = 0; cb < bufferCount; cb++) |
|
254 { |
|
255 if (iCommandBuffers[cb]->iOrientation == aOrientation) |
|
256 { |
|
257 // should this be original display rect or update region |
|
258 tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect); |
|
259 } |
|
260 } |
|
261 return tempRegion.BoundingRect(); |
|
262 } |
|
263 |
|
264 void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/) |
|
265 { |
|
266 // Not supported by default |
|
267 } |