History log of /frameworks/rs/rsElement.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
82e135c4bbe18855d8ed02632bb074f8da0b96e0 28-Feb-2017 Miao Wang <miaowang@google.com> Remove libutils.so dependency from libRSDriver, libRSCpuRef, and most
parts of libRS_internal.

NOTE: we're resolving dependencies to provide a model for vendors.
For us, all this code is above the HAL, thus the dependencies
are acceptable; whereas for vendors, their equivalent of this code is
below the HAL, and so the dependencies are not acceptable.

This CL resolves the libutils dependency by:
- Implement the timings functions in android::renderscript namespace
using NDK APIs, instead of using libutils counterparts.
- Replace android::Vector and android::String8 by std::vector and
std::string.
- PROPERTY_VALUE_MAX is replaced as PROP_VALUE_MAX.

This CL didn't resolve the libutils dependency of rsFont.cpp and
rsDebugger.cpp in libRS_internal:
The dependent functionality in rsDebugHelper.h is off by default, and
only intended for use during development; and rsFont.cpp is part of
graphics API which is not implemented below the HAL and is not used as
a model by vendors.

Additionally, this CL fixed the bug that mNodes was sorted in a
decreasing order. Nodes in ScriptGroup should be executed in
ascending order. The bad sort was only for support lib; so there was a
previously-unknown bug in support lib implementation of ScriptGroup.

Background:
libutils contains a collection of things like Vector, String8,
CallStack. It served the purpose similar to a STL library, when there
was no stable STL implementation available in Android. And most
importantly, it is not part of NDK.
Support lib used to use our own implementations of android::Vector and
android::String8, because it can only depend on NDK, similarly for the
timing related functions.
As part of the Treble requirements, native RS, including vendor version
libRS_internal, libRSDriver, libRSCpuRef could only depend on NDK
too. So we need to break the dependency on libutils. And since we now
have reasonable support of STLs, we should use that instead.

Bug: 34396220
Test: mm, and all CTS tests pass on Bullhead;
RsTest and RSTest_CompatLib (both native and compat path) also pass.
Change-Id: Ib9a37d16235c1dcd0f5bae3b95c374e394483c91
/frameworks/rs/rsElement.h
7974fc03e11f3a8dd40f794f3b33b4889483090c 09-Feb-2017 Rahul Chaudhry <rahulchaudhry@google.com> frameworks/rs: fix typos and clang-tidy warnings

This change fixes a few typos and clang tidy warnings related to the
"llvm-namespace-comment" checks.

Bug: 26936282
Test: WITH_TIDY=1 WITH_TIDY_CHECKS="llvm-namespace-comment" mm
Change-Id: Ic65182e5b4999fbd48d6a8ad7172e4bfeeb541f4
/frameworks/rs/rsElement.h
10ab8bb0fa510bdb577adce5e67b6bf35882a9dd 01-Jul-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings in frameworks/rs.

* Declare explicit conversion constructors.
* Add NOLINT to implicit conversion constructors.

Bug: 28341362
Test: build with clang-tidy

Change-Id: If5114de668c1c8946b8fca9cee4b2b14f95be5f1
/frameworks/rs/rsElement.h
79c51ded747d2584e2c86fd61a51f475b611275f 08-Mar-2016 Yang Ni <yangni@google.com> Revert "Added a flag to APIs for rsObj creation"

This reverts commit a7725cbfcdfe2eaf868571c77f004a4d7208e8ef.

Change-Id: Ie6a1a14023a2a7f1df732bb73c27db79a3e6aa9f
/frameworks/rs/rsElement.h
a7725cbfcdfe2eaf868571c77f004a4d7208e8ef 11-Dec-2015 Yang Ni <yangni@google.com> Added a flag to APIs for rsObj creation

Bug: 25570907

This flag will distinguish calls from Java/JNI vs. Single-Source RS.
For the latter, the user ref count should remain zero to avoid memory
leaks.

Change-Id: Id3604f93b166089e3aca896d1c6c509b3ea19bcf
/frameworks/rs/rsElement.h
b8353c5943f4038fd7f08db3d958390ce9418798 15-Feb-2015 Yang Ni <yangni@google.com> Revert "Replaced android::Vector with std::vector."

b/19148482

This reverts commit 93d6bc872b7d9fba63abfa7513d56b38d9c3d371.

I also made some changes to Make it work with HEAD.

Change-Id: I5e516976ec1d85ffe1cf388c01795348a9441982
/frameworks/rs/rsElement.h
66f0a168c4227d4e302f4ffb21ec7e9d7b9ca828 11-Nov-2014 Jason Sams <jsams@google.com> Cleanup includes for rs/cpp to not expose internal details.

Change-Id: Ib23f591f8418d3318f61ab1d3f6f2b684bf95692
/frameworks/rs/rsElement.h
44bef6fba6244292b751387f3d6c31cca96c28ad 12-Aug-2014 Chris Wailes <chriswailes@google.com> Replace NULL macros with nullptr literals.

Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
/frameworks/rs/rsElement.h
93d6bc872b7d9fba63abfa7513d56b38d9c3d371 29-Jul-2014 Chris Wailes <chriswailes@google.com> Replaced android::Vector with std::vector.

Change-Id: I4c6abd964dc4b1412ec2e592fc8e835fecfe53f6
/frameworks/rs/rsElement.h
49a87772b9abe620d28cbe110260424b8950055d 10-Jul-2014 Tim Murray <timmurray@google.com> Add missing delete operators to Type and Element.

bug 15861251

Change-Id: I6cbf64f6cb24d2fb3f8ee048c08a982efd4a683e
/frameworks/rs/rsElement.h
a36c50a6ab87f4c9049318d4c6c8ec7b0a1e6e12 17-Jun-2014 Jason Sams <jsams@google.com> Add 64bit large object support

Add HAL hooks for filling in LO fields.

Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4

Conflicts:
driver/rsdBcc.cpp
driver/rsdCore.cpp
rsAllocation.h
rs_hal.h
/frameworks/rs/rsElement.h
48ecf6a5e85a9a832f41393ed2802385bb8b5db8 10-Jul-2013 Jason Sams <jsams@google.com> Remove more String8

Change-Id: I2b43c3c104eab7cb3b6573bea4858f6c2d0a76ca
/frameworks/rs/rsElement.h
f313dc32d5ea68a7c48fb4ec6e131ec2fb97ce2d 09-Jul-2013 Jason Sams <jsams@google.com> Remove internal element builder and vector code.

Remove additional String8 references from shared includes.

Change-Id: Iede11384b9fc5a303d15d47fd4074c800dc6ad5f
/frameworks/rs/rsElement.h
c905efd76fdcc1b8846b229bf7d991d185a7b4b7 27-Nov-2012 Jason Sams <jsams@google.com> Cleanup pass + implement blur uchar

Change-Id: Ib7f1c5218663b468a3c11daa2c3373ae132145ac

Conflicts:

cpu_ref/rsCpuIntrinsicBlend.cpp
/frameworks/rs/rsElement.h
e3150cfb3edb028407669e4a65e087eae77e718c 25-Jul-2012 Jason Sams <jsams@google.com> Plumb context through for serialization.

Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
/frameworks/rs/rsElement.h
e23d239828a229eb7d4d33c9630070f0a87833e1 09-Mar-2012 Alex Sakhartchouk <alexst@google.com> Starting to untangle header spaghetti.

Change-Id: I31f38d05dc8b55c659e8c7e9c0a87b94b9ac1db5
/frameworks/rs/rsElement.h
4a43e3ea8a0328c56ace0af1869b4c8c781a7b26 28-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding RS comments, cleaning up the gl implementation with new Element hal.

Change-Id: I74de1e8248a73a45a39976e6027dac2626d580e9
/frameworks/rs/rsElement.h
253325d2a19162c1dd18de59c357e36adf4a760b 15-Dec-2011 Alex Sakhartchouk <alexst@google.com> Element HAL sturct, script side getters

Change-Id: If98dd4c22bce58dca2c9739c8aee935a2dd0b493
/frameworks/rs/rsElement.h
2d1220c27ae91f0b307f283fe66cb767b63dfe38 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Expand RS vector3 types to vector4.

BUG=5609007

The underlying LLVM implementation for vector3 types does this implicitly. If
RS does not adjust its implementation, we will always be misaligned for any
subsequent data after a vector3 type. We previously inserted padding into the
reflected layers from llvm-rs-cc (hence the skip padding part of this change).
We can safely ignore the padding now that the Java/native code is updated to
use the expanded size. The compiler will also need modification to ensure that
we don't mistakenly skip over any end-of-struct padding.

Fixing the 3 component vector padding problem.

Change-Id: If68af42287deb8f4b28addcd19a9fa314656be44
/frameworks/rs/rsElement.h
98cc35525b2563bf5c7bf05d856693e16ce71e34 19-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing the lockless fifo destory bug.
Removing unused code from element. build.

Change-Id: I4bb324a666486d6d3fa45cc1995d0e96cb99f70a
/frameworks/rs/rsElement.h
c700e649ca44d0dcff8b271e42d949ea72fe3c63 16-Aug-2011 Alex Sakhartchouk <alexst@google.com> Fixing asynchronous performance issues.

Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
/frameworks/rs/rsElement.h
afb743aca56c18beb7ab924e75cb6e070ef3e55a 10-Nov-2010 Alex Sakhartchouk <alexst@google.com> Code cleanup to make formatting consistent
across all the renderscript files.

Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
/frameworks/rs/rsElement.h
54929cce0bf44090424b1f91b676529a2422378f 09-Nov-2010 Alex Sakhartchouk <alexst@google.com> Moving attrib creation to Mesh. Adding arrays as shader inputs.
Removing fixed size arrays.

Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
/frameworks/rs/rsElement.h
39f2ef6fed00a99c5c389e12c4597884027d4858 11-Oct-2010 Alex Sakhartchouk <alexst@google.com> Update allocation from bitmap.
GL attribute cleanup in type.

Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
/frameworks/rs/rsElement.h
383e5b1f68c321a77bfd7466fa1171a9bfab4a6f 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding support for all allowed textures.
Cleaning up unused code
Adding error messages

Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
/frameworks/rs/rsElement.h
e7ae69f4a70f1813cf8086ebd9714192c635300a 14-Sep-2010 Alex Sakhartchouk <alexst@google.com> Shader changes to allow for more flexible constant binding.

Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
/frameworks/rs/rsElement.h
46e45548dc80e801139c9ccc2f2aa927e7f35027 03-Sep-2010 Jason Sams <rjsams@android.com> Add arrays to elements.

Change-Id: I624b03bfc1fd26136afd9305a96026b91b1fad3c
/frameworks/rs/rsElement.h
e3929c9bc6f3897e132304faf1b40c3cf1f47474 10-Aug-2010 Jason Sams <rjsams@android.com> Refcounting in allocations.

Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
/frameworks/rs/rsElement.h
5e9811f075f5a96925785a95afeda22592a840ac 22-Jun-2010 Jason Sams <rjsams@android.com> Move ImageProcessing and ModelViewer to reflected files.
Implement boolean support.

Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
/frameworks/rs/rsElement.h
b825f67adb5d1e1751fe108e6dbf9c6f2555c283 04-Jun-2010 Alex Sakhartchouk <alexst@google.com> Creating the jni and java layer to integrate a3d

Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
/frameworks/rs/rsElement.h
fb6b614bcea88a587a7ea4530be45ff0ffa0210e 21-May-2010 Alex Sakhartchouk <alexst@google.com> Removed unnecessary change based on comments.
Now using android utils lib.
collada_to_a3d seems to work with android util libs.
Integrating old changelist
Changing assert to rsAssrt in VertexArray
making context compile.
Change-Id: I33890defa777f09253bfab630d97782359ec49d7

Added serialization code to rsLib
Integrated old changelist
Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311

Added serialization code to rsLib

Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311
/frameworks/rs/rsElement.h
8154954868694e1f233d87d4933a474518b1cb81 18-Feb-2010 Jason Sams <rjsams@android.com> Implement type collapsing for Elements and Types. Now if a user creates two or more identical objects we simply reuse the existing object rather than create a new one.
/frameworks/rs/rsElement.h
b4d3568f68b1ae97e2a82061cccf220f8e93cd94 05-Jan-2010 Jason Sams <rjsams@android.com> Add RS support for generic attribs as input to vertex programs.
/frameworks/rs/rsElement.h
d01d970cf5973aa5186cc02c80fb2c143a69b0b1 23-Dec-2009 Jason Sams <rjsams@android.com> Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.
/frameworks/rs/rsElement.h
4815c0d121310cfcd6a8aba4eab77a9910af53ac 15-Dec-2009 Jason Sams <rjsams@android.com> Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
/frameworks/rs/rsElement.h
e12c1c591b4219e80f29c6c0e0c62c9578b75450 28-Sep-2009 Jason Sams <rjsams@android.com> Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
/frameworks/rs/rsElement.h
e514b45de8561fbc6ef6770845102ca10b0a69d7 25-Sep-2009 Jason Sams <rjsams@android.com> Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
/frameworks/rs/rsElement.h
8287c0c89bb346a9f251505ac5d5ceb8f449bbaf 24-Sep-2009 Jason Sams <rjsams@android.com> Removed last bits of predefined element types from native code. Predefined types are now constructed at the java layer from standard building blocks.
/frameworks/rs/rsElement.h
e5ffb879ae535a899a486285a23bea05e912480f 10-Aug-2009 Jason Sams <rjsams@android.com> Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking.
/frameworks/rs/rsElement.h
1aa5a4eb81b8b88aeb5d2b6f4c47356fd0a62923 23-Jun-2009 Jason Sams <rjsams@android.com> Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines.
/frameworks/rs/rsElement.h
565ac36ee479f9d7b83e2030ac9646a09cb886a1 04-Jun-2009 Jason Sams <rjsams@android.com> Generalize bitmap support and add remaining GL formats.
Fix bug in command fifo looping case.
/frameworks/rs/rsElement.h
326e0ddf89e8df2837752fbfd7a014814b32082c 22-May-2009 Jason Sams <jsams@google.com> Add the Renderscript library. (Not in the build by default yet.)

This library can be used to create animated 3D User Interfaces.

This library is currently under heavy development, so it's not part of
the build by default.

In order to build this library, you must define

BUILD_RENDERSCRIPT=true

in your build environment.

You will also have to manually edit

build/core/prelink-linux-arm.map

And add libRS and libRS_jni at the end like this (exact address may change.)

libRS.so 0x9A100000
libRS_jni.so 0x9A000000
/frameworks/rs/rsElement.h