(Part 4) Mark all gfx functions invoked by JNI so I don't shoot myself in the foot shortly

This commit is contained in:
Kartikaya Gupta 2012-02-17 10:13:56 -05:00
Родитель 614fed1c73
Коммит abd5e1faa7
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -174,7 +174,7 @@ public class GeckoGLLayerClient extends GeckoLayerClient
GeckoAppShell.sendEventToGecko(event);
}
/** For Gecko to use. */
/** This function is invoked by Gecko via JNI; be careful when modifying signature. */
public ViewTransform getViewTransform() {
Log.e(LOGTAG, "### getViewTransform()");
@ -216,7 +216,7 @@ public class GeckoGLLayerClient extends GeckoLayerClient
renderRequested();
}
/** For Gecko to use. */
/** This function is invoked by Gecko via JNI; be careful when modifying signature. */
public LayerRenderer.Frame createFrame() {
// Create the shaders and textures if necessary.
if (!mLayerRendererInitialized) {
@ -230,12 +230,12 @@ public class GeckoGLLayerClient extends GeckoLayerClient
return mLayerRenderer.createFrame(pageContext, screenContext);
}
/** For Gecko to use. */
/** This function is invoked by Gecko via JNI; be careful when modifying signature. */
public void activateProgram() {
mLayerRenderer.activateProgram();
}
/** For Gecko to use. */
/** This function is invoked by Gecko via JNI; be careful when modifying signature. */
public void deactivateProgram() {
mLayerRenderer.deactivateProgram();
}

Просмотреть файл

@ -120,6 +120,7 @@ public abstract class GeckoLayerClient implements GeckoEventListener {
sendResizeEventIfNecessary();
}
/** This function is invoked by Gecko via JNI; be careful when modifying signature. */
public Rect beginDrawing(int width, int height, int tileWidth, int tileHeight,
String metadata, boolean hasDirectTexture) {
Log.e(LOGTAG, "### beginDrawing " + width + " " + height + " " + tileWidth + " " +
@ -196,7 +197,8 @@ public abstract class GeckoLayerClient implements GeckoEventListener {
return bufferRect;
}
/*
/** This function is invoked by Gecko via JNI; be careful when modifying signature.
*
* TODO: Would be cleaner if this took an android.graphics.Rect instead, but that would require
* a little more JNI magic.
*/