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 |
|
158 Toolkit(ToolkitInvoker aInvoker) |
154 Toolkit(ToolkitInvoker aInvoker) |
159 { |
155 { |
160 iInvoker = aInvoker; |
156 iInvoker = aInvoker; |
161 tmpDisplayables = new Vector(); |
157 tmpDisplayables = new Vector(); |
162 |
158 |
691 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
687 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
692 iBuffer.sync(); |
688 iBuffer.sync(); |
693 } |
689 } |
694 } |
690 } |
695 |
691 |
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 |
|
707 /** |
692 /** |
708 JSR 135 Support |
693 JSR 135 Support |
709 */ |
694 */ |
710 final int getEventServerHandle() |
695 final int getEventServerHandle() |
711 { |
696 { |