equal
deleted
inserted
replaced
246 |
246 |
247 |
247 |
248 TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation) |
248 TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation) |
249 { |
249 { |
250 TInt bufferCount = iCommandBuffers.Count(); |
250 TInt bufferCount = iCommandBuffers.Count(); |
251 RRegion tempRegion; |
251 RRegionBuf<1> tempRegion; |
252 |
252 |
253 for (TInt cb = 0; cb < bufferCount; cb++) |
253 for (TInt cb = 0; cb < bufferCount; cb++) |
254 { |
254 { |
255 if (iCommandBuffers[cb]->iOrientation == aOrientation) |
255 if (iCommandBuffers[cb]->iOrientation == aOrientation) |
256 { |
256 { |
257 // should this be original display rect or update region |
257 // should this be original display rect or update region |
258 tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect); |
258 tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect); |
259 } |
259 } |
260 } |
260 } |
261 return tempRegion.BoundingRect(); |
261 TRect result = tempRegion.BoundingRect(); |
|
262 tempRegion.Close(); |
|
263 return result; |
262 } |
264 } |
263 |
265 |
264 void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/) |
266 void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/) |
265 { |
267 { |
266 // Not supported by default |
268 // Not supported by default |