Merge "Fix example AGSL code in the javadoc comments" into tm-dev am: 89acf500cb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19889898

Change-Id: I5662d5a95cf096961329272a3634e0096cbfae1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Andrew Solovay
2022-09-08 19:19:56 +00:00
committed by Automerger Merge Worker

View File

@@ -214,7 +214,7 @@ import libcore.util.NativeAllocationRegistry;
* uniform shader myShader;
* vec4 main(vec2 canvas_coordinates) {
* // swap the red and blue color channels when sampling from myShader
* return myShader.sample(canvas_coordinates).bgra;
* return myShader.eval(canvas_coordinates).bgra;
* }</pre>
*
* <p>After creating a {@link RuntimeShader} with that program the shader uniform can