John Reck
773bbe0357
Revert "Add ninePatch support to Canvas.h"
...
This reverts commit edca320a2b42011f98c308fdf25fc0494c6a5454.
Change-Id: I30ee93cfc1cac391ce152f03e9e13a1ad24dc91b
2015-08-17 15:24:09 -07:00
Derek Sollenberger
deead00082
Merge "Add ninePatch support to Canvas.h"
2015-08-17 17:20:55 +00:00
huanhuan.x.wang
a46ca5ec73
Make the value for shadowRadius less than 1.0 work
...
bug:22806069
Shadow effect is not visible if the shadowRadius is set
between 0.1 and 1.0.
Cherry-pick of 8d9b5fbd from AOSP
Change-Id: Ifff71f44d66ba604bd751bb1df96a9904ae7998e
2015-08-14 22:47:47 +00:00
Derek Sollenberger
edca320a2b
Add ninePatch support to Canvas.h
...
Change-Id: Ib3202fd7c5b9f35853f286abe84b3ed009df1a81
2015-08-14 14:59:37 -04:00
John Reck
49286e8540
Merge "Tune LA's initial size better"
2015-07-30 21:29:03 +00:00
John Reck
afb052142a
Tune LA's initial size better
...
Reduces wasted memory from ~80% to ~40% on a
handful of apps.
Change-Id: Idd5fb6477341925156d5f1f0ce2a535ec4e1aa4f
2015-07-30 14:22:32 -07:00
John Reck
bef837dc57
Remove the rest of utils/Vector.h usage
...
Change-Id: I90ab2c17ba1903a8241cba7f623b74ed136dd845
2015-07-30 09:51:57 -07:00
Chris Craik
5a4690bf26
Clean up unncessary defines
...
LOG_TAG and TRACE_TAG are already defined in the makefile
Change-Id: I9e53e3dacbe018441edd74cb7c8c90846defee74
2015-07-14 13:25:38 -07:00
Chris Craik
5686bae289
Dump GL errors and crash on failure to allocate texture for layer
...
bug:22029728
Change-Id: Ib6f778975225b36567b12e30967955640ec185b3
2015-06-23 10:34:54 -07:00
John Reck
41300274cf
Iterate step of launch & iterate
...
Bug: 18052916
Tweaked colors, merged some categories
Reduced significance of fast frames
Increased visual weight of janky frames
Change-Id: I5b4e86164c4d51debad7de0e0f8715dda34c7a60
2015-06-04 10:49:08 -07:00
Chris Craik
1b54fb27ac
Delete MAKE_ENUM_FLAGS
...
bug:21595702
Settle on namespace-enum for consistency. Also removes k prefix.
Change-Id: Ib89f94cb9263de40b6e4636577dca4860867d0d8
2015-06-03 13:42:21 -07:00
Chris Craik
ff29b5a5b9
Fix round cap approximation to understand scale
...
bug:19772120
Change-Id: I7b944faed1d1e8d5f55453802da57679217d9d9a
2015-05-27 18:17:55 -07:00
Chih-Hung Hsieh
2f1e21d995
Add missing const qualifier to compile with clang/llvm.
...
BUG: 21298442
Change-Id: Iad211237fdb0128d8f4490419687bf1da1cd261c
2015-05-19 10:44:53 -07:00
Chris Craik
6b4ace298e
Merge "Add back alpha atrace log" into mnc-dev
2015-05-13 23:53:48 +00:00
Chris Craik
1a0808e64c
Add back alpha atrace log
...
bug:20922838
Change-Id: I70ccbffdd5f140cd1dd71fbf456fb5b085e74a4a
2015-05-13 16:47:19 -07:00
John Reck
4c9e59d03c
Unify DrawProfiler/JankStats
...
Bug: 20822400
Change-Id: I24345c3120440bfce14e8cbe7e880b39f10b744a
2015-05-12 11:02:07 -07:00
John Reck
b5bc454870
Teach LA how to destroy
...
Change-Id: I57ab30b6d56370dade6987f442136ea5e5546c9b
2015-04-23 16:04:50 -07:00
John Reck
1ed723723d
Move LinearAlloc to libhuwi
...
Change-Id: I1d8c99bdeef22ca569e1743cff6108f478737bc8
2015-04-23 15:46:28 -07:00
huanhuan.x.wang
8d9b5fbdf0
Make the value for shadowRadius less than 1.0 work
...
Shadow effect is not visible if the shadowRadius is set
between 0.1 and 1.0.
Change-Id: Ifff71f44d66ba604bd751bb1df96a9904ae7998e
2015-04-14 16:25:46 +02:00
Chris Craik
e2bb380bc2
Use glops for text rendering
...
Change-Id: I5e155c8baf3149f0ff231ec3c89dbff6bb8eae92
2015-03-18 16:10:24 -07:00
Mike Reed
2a1ce8a4e5
use SkFilterQuality instead of SkPaint::FilterLevel
...
Change-Id: I5d26869de746107b8a35a7a662236f993a824b0d
2015-03-16 11:31:38 -04:00
Chris Craik
a6b52198b9
Glop drawBitmaps, drawPatches
...
Change-Id: I3f1cd3f47f97d2e0c9b9d153732e26ee0b1c58c2
2015-03-03 08:58:14 -08:00
Chris Craik
ef2507439c
Glop mesh reorg, support for drawBitmapMesh
...
Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
2015-02-26 10:56:07 -08:00
John Reck
c87be99c6e
C++11 style fixups
...
Change-Id: I356d02338820bfef41a9e278c88dafc17cfe1cf9
2015-02-20 10:58:48 -08:00
John Reck
ba6adf66d3
Initial attempt at jank-tracking stat collection
...
Is a bit naive, perhaps overly aggressive, but sorta works
Change-Id: I01a774e00dbe681439c02557d9728ae43c45ce50
2015-02-20 08:27:38 -08:00
Chris Craik
922d3a7f6f
Glop SkiaShader support
...
Change-Id: I894a0b62701bd02367ab970813e4c332147351a2
2015-02-17 15:45:46 -08:00
Chris Craik
0519c810a5
Glop Bitmap and RoundRect clipping support
...
Change-Id: I4577546a5d2e5f084cc03f39a89db9231b8111ee
2015-02-12 12:30:59 -08:00
Chris Craik
117bdbcfa3
Glop ColorFilter & VertexBuffer support, initial enable
...
Enables Glop rendering for supported Rects and VertexBuffers
Also removes unused Query object
Change-Id: Ibe227bc362685a153159f75077664f0947764e06
2015-02-06 13:42:25 -08:00
Chris Craik
031888744e
GlopBuilder, and test app refactor
...
Change-Id: I2cd299ccf178007fd5f83bab6c3448f03aec7843
2015-02-04 15:57:59 -08:00
Chris Craik
65fe5eeb19
Move scissor state to RenderState
...
Change-Id: I1227a3886fb24e4d9fad79fca469794f06cfb15e
2015-01-27 17:12:39 -08:00
Rob Tsuk
487a92caef
Clipping performance improvements
...
Create a ClipArea class to handle tracking clip regions. This class can
select the most efficient implementation depending on the types of
clipping presented.
ClipArea re-used the rectangle and region-based clipping
implementations as well as adding a "list of rotated rectangles"
approach that is more efficient for rotated views with children.
Change-Id: I2133761a2462ebc0852b394220e265974b3086f0
2015-01-14 17:24:58 -08:00
Chris Craik
d41c4d8c73
Add overrides and switch to nullptr keyword for all files
...
Adds remaining missing overrides and nullptr usages, missed due to
an extreme failure in tool usage.
Change-Id: I56abd72975a3999ad13330003c348db40f59aebf
2015-01-05 16:49:13 -08:00
Tom Hudson
8dfaa49042
Make DisplayListRenderer inherit from Canvas, merge JNI
...
Incrementally unify the upper layers for Skia and HWUI.
Remove redundant code from GLES20Canvas.java; instead
use inherited mNativeCanvasWrapper and superclass method
definitions.
Moves some unrelated SkPaint utility functions from Renderer
to new utils/PaintUtils.
bug: 15672762
Change-Id: I4ddd4214b8e9eeb95289d054ef423f2542bb5fa5
2015-01-05 15:25:41 -08:00
Chris Craik
e84a208317
Add overrides and switch to nullptr keyword
...
Changes generated with clang-modernize.
Additionally, fixed some struct-vs-class usage to make clang happy.
Change-Id: Ic6ef2427401ff1e794d26f21f7b44868fc75fb72
2014-12-22 14:56:08 -08:00
Chris Craik
70850ea258
Improve logging around performance critical events
...
bug:17702227
Add details useful to developers (such as layer size/View name), and
switch away from logging implementation names/details, since they
are generally not relevant to developers.
Change-Id: Iee605d182f241450f7e75a6d0c283d51fa1312f5
2014-11-19 17:24:30 -08:00
ztenghui
3bd3fa1f1d
Correctly detect the wrong Z value for the light
...
b/17221975
Change-Id: I2b46da95ad12ca5260d7fe9514a75558b6b6393b
2014-08-26 10:45:27 -07:00
ztenghui
c50a03d78a
Improve the spot shadow computation.
...
Get rid of compuation of the intersection for penumbra and convex hull for umbra.
Use simple circle / normal to compute the penumbra and simple intersection for umbra.
The new way could be 2x to 4x faster from rectangle to round shape.
And this part is roughly half of the shadow computation, or 2/3 of spot shadow
computation.
This improve the spot shadow spikeness too.
b/16712006
b/14976551
Change-Id: I02911784868731369efa73f76fc915bc08248600
2014-08-22 13:51:16 -07:00
Chris Craik
74cf7e6a25
Cap scales used for tessellation with minimum and maximum
...
bug:15615144
Change-Id: I3e833864af3a7b34e444bd13db34b6c90496a8b6
2014-08-07 22:26:55 +00:00
John Reck
3b52c03f50
clamp & round alpha
...
Bug: 16842521
Change-Id: Ifd93f40b5751746835c9d56bb3c2b5ba700bdccc
2014-08-06 10:19:32 -07:00
John Reck
1aa5d2d706
Fix ALL compile warnings
...
All warnings/errors fixed for GCC & Clang
Change-Id: I2ece3a136a5ae97a9acc3069537ed986238b5fd3
2014-07-24 14:28:08 -07:00
Chris Craik
1e5cf9aced
am b1c76a1a: Merge "Tessellate on worker threads" into lmp-preview-dev
...
* commit 'b1c76a1abcfb2f33e12fef37ec71d20724863b5e':
Tessellate on worker threads
2014-06-10 17:22:31 +00:00
Chris Craik
05f3d6e511
Tessellate on worker threads
...
Tessellate and cache (where possible) shadow and round rect
tessellation tasks.
Change-Id: I2cfda8e11d83d51ea74af871235cf26e8f831d40
2014-06-10 01:53:17 +00:00
Derek Sollenberger
e392c81f6b
Pass the radius as a float deeper into HWUI allowing RS to generate more accurate blurs.
...
Also, when converting radius to an integer value snap to the appropriate integer boundaries.
bug: 10650594
Change-Id: Icca4bc17d88162bbcbc6035d4f81bd1d98a4de2d
2014-05-21 13:27:10 -04:00
Chris Craik
deeda3d337
Round rect outline clipping
...
Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
2014-05-15 16:36:12 -07:00
John Reck
315c329544
Add TimeInterpolator support to RNA
...
Bug: 14678626
Change-Id: I6554e7fcd42c49fac3618ca792083bb68e358f55
2014-05-12 14:41:06 -07:00
John Reck
9fa4071c47
Refactor VirtualLightRefBase & JNI
...
Change-Id: I8e244e7109e59d5be96871b23bb9b1201c7f9eaa
2014-05-09 15:28:54 -07:00
Chris Craik
e4aa95e362
Add logging utility methods
...
Change-Id: I0f316830dcc0bbf438292a6d0fbe9f8154368500
2014-05-08 13:57:05 -07:00
Derek Sollenberger
5b554f0103
Merge "Avoid caching shadow properties in Java & HWUI."
2014-05-08 14:41:47 +00:00
Derek Sollenberger
c29a0a4664
Avoid caching shadow properties in Java & HWUI.
...
bug: 10650594
Change-Id: I6f57df002710bb0567ed7e53fc0bfe96cfd504b8
2014-05-07 09:36:04 -04:00
John Reck
52244fff29
Add CanvasProperty for drawCircle
...
Change-Id: Icbcc030f5033d2094e567d7c519b9d672f2aac1c
2014-05-02 13:43:46 -07:00