summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-04-27 14:21:41 -0700
committerRomain Guy <romainguy@google.com>2011-04-27 14:21:41 -0700
commit9fc27819d75e24ad63d7b383d80f5cb66a577a0d (patch)
treea5d490bc034404c4a2ddcba95c4fdbfd0d01d6db /libs/hwui/OpenGLRenderer.cpp
parent2d039219adbeaad1a481267bca021b1a8645b481 (diff)
downloadframeworks_base-9fc27819d75e24ad63d7b383d80f5cb66a577a0d.zip
frameworks_base-9fc27819d75e24ad63d7b383d80f5cb66a577a0d.tar.gz
frameworks_base-9fc27819d75e24ad63d7b383d80f5cb66a577a0d.tar.bz2
Correctly compute tex coords for rect layers.
Bug #4192695 This change also fixes Javadoc links in the framework. Change-Id: Ia548bcb18baba5d6fe6a4a04a2278e3a3bd465b2
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index dd0cca2..e926d99 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -647,10 +647,10 @@ void OpenGLRenderer::composeLayerRect(Layer* layer, const Rect& rect, bool swap)
void OpenGLRenderer::composeLayerRegion(Layer* layer, const Rect& rect) {
#if RENDER_LAYERS_AS_REGIONS
if (layer->region.isRect()) {
- const android::Rect& bounds = layer->region.getBounds();
- layer->regionRect.set(bounds.leftTop().x, bounds.leftTop().y,
- bounds.rightBottom().x, bounds.rightBottom().y);
+ layer->setRegionAsRect();
+
composeLayerRect(layer, layer->regionRect);
+
layer->region.clear();
return;
}