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
John Reck
d2e7214179
Makefile re-jiggering
...
Change-Id: I6a8d7c9ecbc4f1af8bc4a6e1409787f215d6fc5b
2015-08-17 13:29:10 -07:00
Derek Sollenberger
deead00082
Merge "Add ninePatch support to Canvas.h"
2015-08-17 17:20:55 +00:00
Chris Craik
31710114ba
Merge "Make the value for shadowRadius less than 1.0 work"
2015-08-17 16:37:36 +00:00
Derek Sollenberger
3c9edc9fae
Merge "Cleanup unused param in RenderNode::computeOrdering"
2015-08-17 12:44:06 +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
John Reck
d6d6843aaa
Remove unneeded main.cpp
...
BUILD_NATIVE_TEST actually includes
a main, so this is potentially conflicting
Change-Id: Ic1e60ab3c005417e8aef3d3521409ea034616764
2015-08-14 14:34:17 -07:00
Derek Sollenberger
f293259c0d
Cleanup unused param in RenderNode::computeOrdering
...
Change-Id: I4012ac7fce446770c5619dc149f6d62741237fc2
2015-08-14 15:11:23 -04:00
Derek Sollenberger
edca320a2b
Add ninePatch support to Canvas.h
...
Change-Id: Ib3202fd7c5b9f35853f286abe84b3ed009df1a81
2015-08-14 14:59:37 -04:00
John Reck
25f8da9b6a
Merge "Support new EGL extensions"
2015-08-13 15:26:55 +00:00
John Reck
149173d28c
Support new EGL extensions
...
Bug: 21753739
Includes a revert of 13d1b4ab10fbee5e81a2ba1ac59cfae1e51d3ef0
as that only supported EGL_EXT_buffer_age
Change-Id: Ia86a47d19e3355c067934d7764c330b640c6958d
2015-08-12 14:26:05 -07:00
John Reck
c128823940
Fix bug in calculating perspective damage
...
Change-Id: Iacab98cf3525f891012087acf85e4205b5e8f0d0
2015-08-12 13:52:01 -07:00
Ben Wagner
60126efd7d
Use unique_ptr instead of SkAutoTDelete.
...
Skia would like to make SkAutoTDelete private, given that unique_ptr
now exists and is a better standard alternative.
Change-Id: Ie21bc4546c93e2096c1e43b26eb3ef80b8f11de4
2015-08-07 17:54:35 -04:00
John Reck
016e0091d6
am b47ea9b2: am 2fa3eec0: am 93c14069: Merge "hwui: add extension to support unpack operations in OpenGL ES 2.0"
...
* commit 'b47ea9b2ed24f8eb6fc8b338555ff0d8825d8565':
hwui: add extension to support unpack operations in OpenGL ES 2.0
2015-08-04 21:00:09 +00:00
John Reck
0aee76c303
Merge "renderthread: add EGL_EXT_buffer_age support"
2015-08-04 20:54:20 +00:00
John Reck
b47ea9b2ed
am 2fa3eec0: am 93c14069: Merge "hwui: add extension to support unpack operations in OpenGL ES 2.0"
...
* commit '2fa3eec0e1807f6a45b71a41624698e8cc949026':
hwui: add extension to support unpack operations in OpenGL ES 2.0
2015-08-04 20:51:42 +00:00
John Reck
9acd09d364
am 598b0123: am 67716c13: am e28c5d62: am a975a844: am 70e5db94: Merge "Fix crash in kModeProcessNoContext" into mnc-dev
...
* commit '598b0123d322b396e8bfc3d66f228cf0b7485eac':
Fix crash in kModeProcessNoContext
2015-08-04 20:20:41 +00:00
Season Li
13d1b4ab10
renderthread: add EGL_EXT_buffer_age support
...
EGL_EXT_buffer_age is better than EGL_BUFFER_PRESERVED
because it can save memory bandwidth used to blit
back buffer into front buffer.
Change-Id: I2fea0ee08dc7dd66e348b04dd694d075d509d01b
2015-08-04 13:01:54 -07:00
John Reck
a975a84498
am 70e5db94: Merge "Fix crash in kModeProcessNoContext" into mnc-dev
...
* commit '70e5db9413f82bf1f000bd99b3d2dbecf6e4ab04':
Fix crash in kModeProcessNoContext
2015-08-04 19:48:30 +00:00
John Reck
95cd24bb9d
Fix crash in kModeProcessNoContext
...
Bug: 22931143
Change-Id: I9897a28b1edd006aee67ae2343874ad92bbd15a0
2015-08-04 18:19:11 +00:00
Ben Wagner
a11ee3c413
Add Skia includes where needed.
...
A proposed change in Skia will forward declare more classes in more
headers. As a result, some Skia headers need to be explicitly
included.
Change-Id: I577095afde9de0e36b8f904aee91979b01e30726
2015-08-04 17:28:43 +00:00
xiaozhengdong
d538d30e2f
hwui: add extension to support unpack operations in OpenGL ES 2.0
...
OpenGL ES 3.0+ lets us specify the row length for unpack operations
such as glTexSubImage2D(). This allows us to upload a sub-rectangle
of a texture. Also, the GL_EXT_unpack_subimage extension can also
support this feature in OpenGL ES 2.0
Change-Id: Id43c2c55c5eaefbace67087c955f0b4324fb2c35
Signed-off-by: xiaozhengdong <xiaozhengdong@xiaomi.com>
2015-08-04 19:46:01 +08:00
John Reck
0d39408976
am 903e117e: am 0429246e: am 0c9ec1f2: am 2e529712: am c03ab87a: Merge "Disable skipping frames on empty damage" into mnc-dev
...
* commit '903e117e55d5b2ac58acdce3810fc47972d1c6cb':
Disable skipping frames on empty damage
2015-08-04 01:41:02 +00:00
John Reck
2e529712e6
am c03ab87a: Merge "Disable skipping frames on empty damage" into mnc-dev
...
* commit 'c03ab87ac9f721ff22bfe5e9c0cd0e5be64f261e':
Disable skipping frames on empty damage
2015-08-04 01:00:24 +00:00
John Reck
6d4d0db312
Disable skipping frames on empty damage
...
Bug: 22592975
Optimization added in MNC is not quite correct, occasionally
it will fail to repaint when it was supposed to leading
to buffer corruption. Disable the optimization for now.
Change-Id: I34dfdfb357eda298198043ded7335d4588a003fd
2015-08-03 22:47:49 +00: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
0818228a57
Merge "Remove the rest of utils/Vector.h usage"
2015-07-30 20:37:49 +00:00
Chris Craik
9a579f58a6
am e375685a: am 9c458148: am 3d208671: am 7dfb1d99: am 730c0f65: Merge "Fix stencil mask usage in HWUI" into mnc-dev
...
* commit 'e375685aa4b8d7f31b2cbe08170c32bd4150468d':
Fix stencil mask usage in HWUI
2015-07-30 20:07:06 +00:00
Fred Fettinger
2ccb5030c6
animateNoDamage failed to remove from current frame list
...
runRemainingAnimations is used to animate the available animation handle
which were not yet run, it actually animate those animation handle and
removes from the list by notifyAnimationsRan(). In case if these animation
handles are not removed, it leads to the Fatal Assert of runRemainingAnimations.
Some usecases causes the addition of animation handle when there is
no animators, in these cases this check prevents execution of
notifyAnimationsRan() leads to Fatal Assert crash of runRemainingAnimations.
Allowing the animation to happen irrespective of animators solves the problem
Change-Id: I685dc7ebf736268927a536595910fc63353306eb
Signed-off-by: Parasuraman <parasur@motorola.com>
Signed-off-by: Fred Fettinger <fettinge@motorola.com>
2015-07-30 13:03:00 -07:00
Chris Craik
7dfb1d9931
am 730c0f65: Merge "Fix stencil mask usage in HWUI" into mnc-dev
...
* commit '730c0f6591b1c99699e9d0ecf36d696f7d87629f':
Fix stencil mask usage in HWUI
2015-07-30 19:37:15 +00:00
Chris Craik
fa51a0e1ce
Fix stencil mask usage in HWUI
...
bug:21588246
Ensure we always set the mask before clearing, and removes
some unneeded optimizations around mask usage in
debug (overdraw) mode.
Change-Id: I71ed06c16f8d9f158953d5aa160098514f0f7f00
2015-07-30 11:06:53 -07:00
John Reck
cef25e5319
Merge "Replace most usages of utils/Vector.h"
2015-07-30 17:38:35 +00:00
John Reck
bef837dc57
Remove the rest of utils/Vector.h usage
...
Change-Id: I90ab2c17ba1903a8241cba7f623b74ed136dd845
2015-07-30 09:51:57 -07:00
John Reck
272a685f17
Replace most usages of utils/Vector.h
...
Change-Id: I540d1b3523244d6c71fc52d6fb30555271c25644
2015-07-30 09:51:52 -07:00
Chris Craik
70cfdc9137
Merge "Add fast path for roundrect Outline changes"
2015-07-30 16:37:11 +00:00
John Reck
d416398c3f
Merge "Re-enable -Werror on clang"
2015-07-30 16:26:29 +00:00
Derek Sollenberger
6578a98956
Support High Contrast Text for all canvas types
...
Change-Id: Iee324446798fe1a1cb32cb991f181a4af24aa93c
2015-07-29 16:02:14 -04:00
Chris Craik
40de9f28f4
Add fast path for roundrect Outline changes
...
bug:22724385
Additionally, move all outline/related methods on RenderNode to use
fast JNI.
Change-Id: Idc462099638bdae0391d35975f3161a2f0540b9b
2015-07-29 12:57:41 -07:00
Chris Craik
c9a6ca5d6b
Merge "Revert "Support High Contrast Text for all canvas types""
2015-07-29 18:15:16 +00:00
Chris Craik
749e67438c
Revert "Support High Contrast Text for all canvas types"
...
bug:22820834
This reverts commit 876d56612ab8ec7032f702905d694670e6c4febd.
Change-Id: I4e07a0894095caaaf2fd36bfa6073d033542bfc4
2015-07-29 18:14:46 +00:00
John Reck
c36df95229
Re-enable -Werror on clang
...
Change-Id: I582bd0665752c7a9deb4f9de094d0dd0a50cda6a
2015-07-29 10:09:36 -07:00
Derek Sollenberger
2d35cf953a
Merge "Support High Contrast Text for all canvas types"
2015-07-29 14:36:09 +00:00
Chris Craik
504070587b
Merge "Fix comment about swap buffers with damage"
2015-07-28 18:06:19 +00:00
Chris Craik
7cd262a59c
Fix comment about swap buffers with damage
...
Change-Id: I7957bed4488453019ad9f09427d81741bca4e5e9
2015-07-28 10:46:52 -07:00
Andreas Gampe
cb4af9b10a
Hwui: Remove unused variables
...
For build-system CFLAGS clean-up, remove unused variables.
Bug: 18632512
Change-Id: Ic58bedc84234325512193991fc64315e3aad6f9e
2015-07-27 18:22:08 -07:00
Leon Scroggins III
0e9059b454
Change from SkDeviceProperties to SkSurfaceProps.
...
Fixes build.
Change-Id: Id6b0f96830761f8b6896169327de90f3b390e3c9
(cherry picked from commit 8ebf97a668e7a53bb9810aa5049a8b28435143d2)
2015-07-24 15:55:48 +00:00
John Reck
83b8832397
am 23861bb9: am 78d491ac: am 452b62e1: am c5d3dde6: am 8b1154c4: Merge "Move updateMatrix() call to animateCommon" into mnc-dev
...
* commit '23861bb9d0f4bfeb11ba0989418d567207eb06f3':
Move updateMatrix() call to animateCommon
2015-07-24 05:16:21 +00:00
John Reck
9e5f4af1ed
am 11f9da31: am bdb2a905: am d08fb687: am e5783e58: am 2abf0f24: Fix a race condition that could cause lockup
...
* commit '11f9da310ac3129cd859ef98f7f10d897308a59b':
Fix a race condition that could cause lockup
2015-07-24 05:14:44 +00:00
John Reck
c5d3dde6c7
am 8b1154c4: Merge "Move updateMatrix() call to animateCommon" into mnc-dev
...
* commit '8b1154c487c25388107dc024376435f3b0ae2385':
Move updateMatrix() call to animateCommon
2015-07-24 00:02:23 +00:00