Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
9ce2c8eb
Commit
9ce2c8eb
authored
12 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix for HWC visual defects on Home screen."
parents
23399ae1
08b36a3b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch/all/gecko/HWC-multirect-visible-region.patch
+26
-5
26 additions, 5 deletions
patch/all/gecko/HWC-multirect-visible-region.patch
with
26 additions
and
5 deletions
patch/all/gecko/HWC-multirect-visible-region.patch
+
26
−
5
View file @
9ce2c8eb
diff --git a/widget/gonk/HwcComposer2D.cpp b/widget/gonk/HwcComposer2D.cpp
index 96a27ce..
e383833
100644
index 96a27ce..
42f4b1e
100644
--- a/widget/gonk/HwcComposer2D.cpp
+++ b/widget/gonk/HwcComposer2D.cpp
@@ -166,7 +166,7 @@
PrepareLayerRects(nsIntRect aVisible, const gfxMatrix& aTransform,
...
...
@@ -75,7 +75,17 @@ index 96a27ce..e383833 100644
* Calculates the layer's clipping rectangle
*
* @param aTransform Input. A transformation matrix
@@ -260,12 +308,6 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
@@ -251,21 +299,11 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
}
float opacity = aLayer->GetEffectiveOpacity();
- if (opacity <= 0) {
- LOGD("Layer is fully transparent so skip rendering");
- return true;
- }
- else if (opacity < 1) {
+ if (opacity < 1) {
LOGD("Layer has planar semitransparency which is unsupported");
return false;
}
...
...
@@ -88,7 +98,7 @@ index 96a27ce..e383833 100644
nsIntRect clip;
if (!CalculateClipRect(aParentTransform * aGLWorldTransform,
aLayer->GetEffectiveClipRect(),
@@ -330,7 +3
72
,14 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
@@ -330,7 +3
68
,14 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
sp<GraphicBuffer> buffer = fillColor ? nullptr : GrallocBufferActor::GetFrom(*state.mSurface);
...
...
@@ -104,7 +114,7 @@ index 96a27ce..e383833 100644
nsIntRect bufferRect;
if (fillColor) {
@@ -385,
8
+43
4,2
3 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
@@ -385,
13
+43
0,3
3 @@
HwcComposer2D::PrepareLayerList(Layer* aLayer,
hwcLayer.transform |= state.YFlipped() ? HWC_TRANSFORM_FLIP_V : 0;
hwc_region_t region;
...
...
@@ -130,7 +140,18 @@ index 96a27ce..e383833 100644
hwcLayer.visibleRegionScreen = region;
} else {
hwcLayer.flags |= HWC_COLOR_FILL;
@@ -412,6 +476,8 @@
HwcComposer2D::TryRender(Layer* aRoot,
ColorLayer* colorLayer = static_cast<ColorLayer*>(layerGL->GetLayer());
- hwcLayer.transform = colorLayer->GetColor().Packed();
+ uint32_t color = colorLayer->GetColor().Packed();
+ if (((color >> 24) & 0xff) < 255) {
+ LOGD("Color layer has semitransparency which is unsupported");
+ return false;
+ }
+ hwcLayer.transform = color;
}
mList->numHwLayers++;
@@ -412,6 +477,8 @@
HwcComposer2D::TryRender(Layer* aRoot,
mList->numHwLayers = 0;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment