--- a/uiacceltk/hitchcock/coretoolkit/src/huicanvaspainter.cpp Fri Mar 12 15:47:04 2010 +0200
+++ b/uiacceltk/hitchcock/coretoolkit/src/huicanvaspainter.cpp Mon Mar 15 12:43:37 2010 +0200
@@ -68,10 +68,13 @@
CHuiCanvasCommandBuffer* newBuffer = new(ELeave) CHuiCanvasCommandBuffer;
CleanupStack::PushL(newBuffer);
newBuffer->iCommands = commands;
- if (iCanvasVisual && iCanvasVisual->Display())
+
+ // the orientation will be defined by the commandbuffer
+ /*if (iCanvasVisual && iCanvasVisual->Display())
{
newBuffer->iOrientation = iCanvasVisual->Display()->Orientation();
- }
+ }*/
+
iCommandBuffers.AppendL( newBuffer);
CleanupStack::Pop(2, commands);
@@ -240,3 +243,25 @@
return EFalse;
}
+
+
+TRect CHuiCanvasPainter::CommandBufferCoverage(TInt aOrientation)
+ {
+ TInt bufferCount = iCommandBuffers.Count();
+ RRegion tempRegion;
+
+ for (TInt cb = 0; cb < bufferCount; cb++)
+ {
+ if (iCommandBuffers[cb]->iOrientation == aOrientation)
+ {
+ // should this be original display rect or update region
+ tempRegion.AddRect(iCommandBuffers[cb]->iOriginalDisplayRect);
+ }
+ }
+ return tempRegion.BoundingRect();
+ }
+
+void CHuiCanvasPainter::ClearCapturingBufferArea(const TRect& /*aRect*/)
+ {
+ // Not supported by default
+ }