--- a/javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/Toolkit.java Tue Sep 14 21:06:50 2010 +0300
+++ b/javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/Toolkit.java Wed Sep 15 12:05:25 2010 +0300
@@ -151,6 +151,10 @@
// Op code indicating M3G content start
private static final int M3G_CONTENT_START = 2;
+ // Used for notifying native canvas about start of paint method,
+ // needed by video overlay implementation
+ private static final int PAINT_START = 3;
+
Toolkit(ToolkitInvoker aInvoker)
{
iInvoker = aInvoker;
@@ -689,6 +693,17 @@
}
}
+ void canvasPaintStarted(int aDrawable)
+ {
+ if (checkFlags(FLAG_NGA))
+ {
+ synchronized (iBuffer)
+ {
+ iBuffer.write(aDrawable, PAINT_START);
+ }
+ }
+ }
+
/**
JSR 135 Support
*/