--- a/graphicscomposition/openwfsupport/src/openwfcstream.cpp Tue Jun 22 15:21:29 2010 +0300
+++ b/graphicscomposition/openwfsupport/src/openwfcstream.cpp Tue Jul 20 13:27:44 2010 +0300
@@ -364,46 +364,6 @@
}
}
-EXPORT_C TInt32
-SymbianStreamProcessDisplayedNotifications(SymbianStreamType aStream,
- khronos_int32_t aEvent,
- khronos_int32_t aScreenNumber,
- khronos_int32_t aSerialNumber,
- khronos_int32_t* aReturnMask)
- {
- CSurfaceStream* stream = CSurfaceStream::FromHandle(aStream);
- TInt32 event = aEvent & (ESOWF_EventDisplayed | ESOWF_EventDisplayedX);
- if (stream && event)
- {
- stream->ProcessNotifications(aEvent,
- aScreenNumber,
- CSurfaceStream::EDefaultOperation,
- aSerialNumber,
- aReturnMask);
- }
- return event;
- }
-
-EXPORT_C TInt32
-SymbianStreamProcessAvailableNotifications(SymbianStreamType aStream,
- khronos_int32_t aEvent,
- khronos_int32_t aScreenNumber,
- khronos_int32_t aSerialNumber,
- khronos_int32_t* aReturnMask)
- {
- CSurfaceStream* stream = CSurfaceStream::FromHandle(aStream);
- TInt32 event = aEvent & ESOWF_EventAvailable;
- if (stream && event)
- {
- stream->ProcessNotifications(aEvent,
- aScreenNumber,
- CSurfaceStream::EDefaultOperation,
- aSerialNumber,
- aReturnMask);
- }
- return ESOWF_EventAvailable;
- }
-
EXPORT_C TErrCode
SymbianStreamAddExtendedObserver(SymbianStreamType aStream,
SymbianStreamCallback aObserver,
@@ -447,5 +407,17 @@
stream->SetFlipState(aFlip);
}
}
-} //extern "C" helps fix and verify linkage
+EXPORT_C TErrCode
+SymbianStreamGetChunkHandle(SymbianStreamType aStream, TInt* aHandle)
+ {
+ CSurfaceStream* stream = CSurfaceStream::FromHandle(aStream);
+ if (stream && aHandle)
+ {
+ *aHandle = stream->GetChunkHandle();
+ return KErrNone;
+ }
+ return KErrArgument;
+ }
+
+} //extern "C" helps fix and verify linkage