commit | 7fac2e18339f765320d759e8d4c090f92431959e | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@android.com> | Fri Jul 16 17:10:13 2010 -0700 |
committer | Romain Guy <romainguy@android.com> | Fri Jul 16 17:10:13 2010 -0700 |
tree | 1761c4f41ecd783a85220efcbcacb04d784d96cf | |
parent | 1e79386ba34f0db38c1b35b22cdf122632534354 [diff] |
Add plumbing to support gradients in OpenGL renderer. The LinearGradient class keeps a copy of the various parameters that define the gradient. The copies are native arrays to avoid copying Java arrays on every draw call. The gradient code path is implemented until OpenGLRenderer::drawRect() (see TODO.) The actual gradient implementation will be added in a latter change. Change-Id: I9300d250ef5e2e9c2e097c3116ee71dfc9d752d8