History log of /frameworks/rs/api/GenerateHeaderFiles.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fab6947a18e00964f79e6c802dc70bbaed981730 11-Nov-2015 Yang Ni <yangni@google.com> Updated spec for the rsForEachInternal API

Bug: 23535985

Missed the spec for rsForEachInternal in previous CLs.
The right prototype is
rsForEachInternal(int, rs_script_call*, int, int, ...)
or mangled as

The bcc whitelist was correctly updated in previous CLs.

This is an internal API, therefore header files are not affected.

Updated the api generator to handle the new case of ellipsis being used
in a C++/overloadable, name-mangled function.

Change-Id: Ib6e1341b02eccc64574ebca04c54a7673cb9726e
12398d81f32e5e0479d02b8608a83c75cd991bb3 18-Sep-2015 Yang Ni <yangni@google.com> Add rsForEachInternal

Bug: 23535985

Added a compiler intrinsic rsParallelFor to the runtime API, which
is translated into an internal API (rsForEachInternal) by slang.

Added a test to RsTest (for native) and RSTest_CompatLib
(for support).

Enhanced the auto api generator to handle ellipsis argument,
intrinsics, internal-only APIs, and special level for API under

Change-Id: I6e2cf3db868f426aa8e0b9a77732b66c1e6b9f03
ca51c78b9e3097ee31dd24cdc5982f550ee563d1 26-Aug-2015 Stephen Hines <srhines@google.com> Don't use anonymous literal structures for RS object types.

Bug: 22926131

Using an anonymous structure type prevents us from being able to use
LLVM to determine the actual typename. This is problematic, because
there are some cases where bcc needs to be able to detect/act on RS
object types. Giving each of these structures a legitimate name has no
impact on the generated code (since we are already using typedefs).
This change is also safe for targeting prior Android releases with our

This change also adjusts the API generator to ensure that we can
generate relevant code/docs/tests for handling RS objects. A new
TypeKind is added for RS_OBJECT, instead of using SIMPLE.

Change-Id: Iaff928f5821af66cfc9b3aea2ff5549d0c8a9408
36e2be56cd398bf4a318114bbc9fa3f4573c158f 30-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Generate __attribute__(deprecated) for deprecated APIs.

We allow also a custom deprecation message.

Change-Id: I297bed611c7fbbb34d41e7edd796557c9afe50da
67923a9e829d89522bb5338a6d635d807a7ee59b 13-May-2015 Jean-Luc Brouillet <jeanluc@google.com> Obsolete the graphics API in the .rsh files.

Mark the graphics APIs as no longer available starting with version 23.

Modify the generator to change the #ifdef guards around the API to
enable internal code to still access the obsoleted APIs, as we still
neeed to support them at runtime.

Also, include a documentation change in the rs_convert header file that had not
been included previously.

Change-Id: Iaad4833f504da9aa9f5069a977c37b86d1316d3a
66fea24fb5f3a02b744a9c71ae0fc22c03c4fc6e 10-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Fix a small parsing problem with arguments of type rs_matrix2x2, 3x3, 4x4.

Also fix some style issues and added a missing comment.

Change-Id: Ieaca181453f38f948bc2a5e3d183b264d7215413
4a73004df5231d188c41267fee17c566ae7c3631 03-Apr-2015 Jean-Luc Brouillet <jeanluc@google.com> Add "deprecated:" flag to the spec files.

Also cleanup of the documentation found in the header and html files.

Change-Id: I8a606d1af93b0fd0f912ac23aabdb73aa99233b4
7c07854a959eb70ff9623202b2ca064407a1cc68 24-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Allow specifications for a function to be found in more than one spec file.

To enable the upcoming change that has rsClearOjbect, rsIsObject,
and rsSetObject in two spec files (core & graphics), we need to change
the generator.

Change-Id: I87925dcbe199f11c217907343455b2e8a7a76ed4
62e099314bb1831035083a50616024ffa6253bde 22-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Shorten the generated test file names.

Also place the generated files in their own directories.

Change-Id: I51c1acf15810ec199d17cc2d6e63adebdc0fc3c9
c5184e202ced435258adb2cfe2013570e7190954 13-Mar-2015 Jean-Luc Brouillet <jeanluc@google.com> Generate all APIs.

This CL expands the generator to create all the .rsh files, not just
the core_math one. To do so, processing of types (simple, struct, enums)
and constants was added. .spec files corresponding to each .rsh file was
created. Documentation was added.

This CL also generates HTML documentation files. This generation will soon
be upgraded.

To make the code easier to expand, I've done fairly extensive refactoring.

In a subsequent CL, the APIs will be regrouped in different header files to
simplify learning the APIs. In an other, the documentation generation will
be futher improved and incorporated in the actual online help.

Also removes rs_path & related functions.

Change-Id: I2c88554c9c6a8625233772b89e055fc6c4ad5da5