|
cc: Don't clear transparent piles to an opaque color
The pile background color is what the pile gets cleared to to fill
partially rastered pixels. If the layer is not opaque, clearing to an
opaque color leaves opaque artifacts.
Fix this by adding a function to return a safe color to clear the pile
to or to draw solid color quads from by requiring that this color be
opaque iff the contents of the layer are opaque.
R=danakj@chromium.org
BUG= 245624
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204048
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+108 lines, -18 lines) |
Patch |
 |
M |
cc/layers/layer.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer.cc
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl.cc
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_impl_unittest.cc
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/layer_unittest.cc
|
View
|
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/picture_layer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/picture_layer_impl.cc
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|