OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37fd29f
)
Don't force transparent text to be high contrast
author
Chris Craik
<ccraik@google.com>
Fri, 5 Feb 2016 01:01:54 +0000
(17:01 -0800)
committer
Chris Craik
<ccraik@google.com>
Fri, 5 Feb 2016 01:01:55 +0000
(17:01 -0800)
bug:
26142378
Change-Id: Ia6c9111d9b84d2a5d3385d08c586ac12c9b14dc0
core/jni/android_graphics_Canvas.cpp
patch
|
blob
|
history
diff --git
a/core/jni/android_graphics_Canvas.cpp
b/core/jni/android_graphics_Canvas.cpp
index
35b5016
..
cf73316
100644
(file)
--- a/
core/jni/android_graphics_Canvas.cpp
+++ b/
core/jni/android_graphics_Canvas.cpp
@@
-510,7
+510,7
@@
public:
size_t glyphCount = end - start;
- if (CC_UNLIKELY(canvas->isHighContrastText())) {
+ if (CC_UNLIKELY(canvas->isHighContrastText()
&& paint.getAlpha() != 0
)) {
// high contrast draw path
int color = paint.getColor();
int channelSum = SkColorGetR(color) + SkColorGetG(color) + SkColorGetB(color);