| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
This API can be used to back a view and its children with either a
software layer (bitmap) or hardware layer (FBO). Layers have
various usages, including color filtering and performance
improvements during animations.
Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
|
|
|
|
| |
Change-Id: I69dadd57184d2d80f426c1c862ed0a040c8baf03
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Layers require that drawing methods potentially
draw in more than one bitmaps.
To handle this this patch offers the following:
- move all drawing methods to use Drawable
- Drawables are now handled by GcSnapshot since
its the one handling the layers
- moved Canvas_Delegate.createCustomGraphics to
GcSnapshot which does not expose the Graphics2D
objects anymore so its draw() methods are the only
way to draw.
- handles creating layers in GcSnapshot.save() and
blitting them in restore()
Other changes:
- Clean up the create/save API in GcSnapshot
- Fixed drawing bitmaps with alpha and other
composite modes.
Change-Id: I1e230087493d044a10de71f4b6d29083e3f3bf64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- always set up the stroke. Paint may not have the proper
style when drawing lines. stroke should still be setup.
- Fixed vertical linear gradient. Old code generated
a gradient ratio of NaN
- Fixed alpha rendering when using shaders. In that
case the alpha channel from the paint color should be
used in conjunction with the shader.
- Fixed miter limit. Java expects the value to be multiplied
by the stroke width
- Fixed support for drawing ALPHA_8 bitmaps. Java2D doesn't
have bitmaps with only alpha channels, so we keep using
ARGB bitmaps but when drawing them into a bitmap we erase
the color information.
Change-Id: I4f04341fc843e3f7dadd1fdbf709b11a4f1e24b9
|
|
|
|
|
|
|
|
|
|
| |
Also created delegates for all missing shader, xfermode
and patheffect classes. Moved the logic of the xfermode,
and patheffects that was in Canvas_Delegate into the
xfermode/patheffect classes, and added support (in all
3 clases) for knowing if the shader/xfermode/patheffect
is actually supported or not. Make use of fidelityWarning
in LayoutLog if they are not.
|
|
|
|
| |
Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
|
|
|
|
|
|
|
|
| |
The goal is use the app to test layout lib, so layout
files are needed, and custom views must be instantiable
(ie public)
Change-Id: I46bb3d8af6e4d7973d041aa618f1c7762efd93d0
|
|
|
|
|
|
|
| |
Bug #3207544
Bug #3225875
Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
|
|
|
|
| |
Change-Id: I1d511ab2707000762a942d32c300a9944ab38603
|
|
|
|
| |
Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
|
|
|
|
| |
Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
|
|
|
|
| |
Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
|
|
|
|
|
|
|
| |
This fixes only linear gradients. Sweep and radial gradients, as well as
bitmap shaders, will be fixed in a future commit.
Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
|
|
|
|
| |
Change-Id: I681213036b5279339cb96a016d1dfb15d74dafc8
|
|
|
|
| |
Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
|
|
|
|
|
|
|
|
| |
This change is a workaround for a driver bug that causes an INVALID_OPERATION
to be thrown on every glCopyTexSubImage() call. This change also adds a new
test for gradients local matrices.
Change-Id: I41b7437481026702d0a3a9677f099b4557c0a84e
|
|
|
|
|
|
|
| |
This change also adds full support for local transformation matrices on
sweep and radial gradients.
Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
|
|
|
|
| |
Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
|
|
|
|
| |
Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
|
|
|
|
| |
Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
|
|
|
|
| |
Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
|
|
|
|
| |
Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
|
|
|
|
| |
Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
|
|
|
|
|
|
|
| |
This adds the ability to blend with the framebuffer using Darken,
Lighten, Add, Multiply, Overlay and Screen.
Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
|
|
|
|
| |
Change-Id: Idec325264d85feda76d4cda00fa511aaac82cf64
|
|
|
|
| |
Change-Id: Id2a311bc116438d3627a943cb5fb1ba8dc121bb0
|
|
|
|
| |
Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
|
|
|
|
|
|
|
| |
This will not look great because we render fonts using bitmaps, not
paths.
Change-Id: I01b87b81bfbdbfa28460a5d5309d38e2a65e77c4
|
|
|
|
| |
Change-Id: Iafa421def64a8f9a83b320b6cf3cc5286515c355
|
|
|
|
| |
Change-Id: I7159825f4b1d6f5a1cd09ec091994801b52b6bda
|
|
|
|
|
|
| |
Bug #2919310
Change-Id: I72ccd44bba7a3f3db72f581aa96198b6226e4478
|
|
|
|
|
|
| |
The save stack now behaves exactly like in Skia.
Change-Id: If7e642f41f2c8f693f6e8c26cba81507d466562e
|
|
|
|
|
|
| |
Bug #2919295
Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54
|
|
|
|
| |
Change-Id: Ib86a7309ae579cce3b7cf464782c34e70a74c616
|
|
|
|
| |
Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds the following blending modes for shaders and color filters:
Add
Multiply
Screen
Overlay
Darken
Lighten
Change-Id: Iff22f5ce6041b43c71b1857d73013f5010ab3413
|
|
|
|
| |
Change-Id: I3a0e6643d7cafbdd06d9a908c8cf9347dcaba146
|
|
|
|
| |
Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
|
|
|
|
| |
Change-Id: Ia163af802e5a320490196461a97d5f797b71abb4
|
|
|
|
|
|
|
| |
Rendering is implementing by rasterizing the paths into A8 textures.
This cna be extremely inefficient if the path changes often.
Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
|
|
|
|
|
|
|
|
| |
Hardware acceleration can now be enabled/disabled locally on each activity
declared in the manifest. It can also be enabled/disabled directly on a
window through the WindowManager.LayoutParams.
Change-Id: I91dd0b26c4e7eb8cd7288e523ed6b7bda6d0990b
|
|
|
|
|
|
| |
Color filters are fully supported and can be used with shaders.
Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
|
|
|
|
|
|
|
|
| |
With this change, Skia shaders can easily be applied to any mesh. This change also
supports ComposeShader. For instance, this can be used to blend a gradient and a
bitmap togehter and paint a string of text with the result.
Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
|
|
|
|
| |
Change-Id: I13426a67f20d77e2710bd500d82884098f4be97c
|
|
|
|
|
|
|
| |
This changes binds all textures to GL_TEXTURE0, this will have
to be changed when combining shader capabilities.
Change-Id: I02df4f5ba41e9b01ffa52fd7c26b41477c7ed18f
|
|
|
|
|
|
|
|
|
|
|
| |
The generator supports features that are not yet implement in the
renderer: color matrix, lighting, porterduff color blending and
composite shaders.
This change also adds support for repeated/mirrored non-power of 2
bitmap shaders.
Change-Id: I903a11a070c0eb9cc8850a60ef305751e5b47234
|
|
|
|
|
|
| |
This change also integrates better support for RTL text.
Change-Id: I6da8f5cf5dc28ca7cf1b22e27b0d853c919e8481
|
|
|
|
| |
Change-Id: Ibf0adacdc5c64d40a8000b21d7cb0797d63efe29
|
|
|
|
| |
Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
|
|
|
|
| |
Change-Id: Id15329da065045b3f06fdaed615f33cd57608496
|