equal
deleted
inserted
replaced
149 |
149 |
150 // NGA specific change. |
150 // NGA specific change. |
151 // Op code indicating M3G content start |
151 // Op code indicating M3G content start |
152 private static final int M3G_CONTENT_START = 2; |
152 private static final int M3G_CONTENT_START = 2; |
153 |
153 |
|
154 // Used for notifying native canvas about start of paint method, |
|
155 // needed by video overlay implementation |
|
156 private static final int PAINT_START = 3; |
|
157 |
154 Toolkit(ToolkitInvoker aInvoker) |
158 Toolkit(ToolkitInvoker aInvoker) |
155 { |
159 { |
156 iInvoker = aInvoker; |
160 iInvoker = aInvoker; |
157 tmpDisplayables = new Vector(); |
161 tmpDisplayables = new Vector(); |
158 |
162 |
687 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
691 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
688 iBuffer.sync(); |
692 iBuffer.sync(); |
689 } |
693 } |
690 } |
694 } |
691 |
695 |
|
696 void canvasPaintStarted(int aDrawable) |
|
697 { |
|
698 if (checkFlags(FLAG_NGA)) |
|
699 { |
|
700 synchronized (iBuffer) |
|
701 { |
|
702 iBuffer.write(aDrawable, PAINT_START); |
|
703 } |
|
704 } |
|
705 } |
|
706 |
692 /** |
707 /** |
693 JSR 135 Support |
708 JSR 135 Support |
694 */ |
709 */ |
695 final int getEventServerHandle() |
710 final int getEventServerHandle() |
696 { |
711 { |