summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-03-31 15:54:41 -0700
committerNicolas Roard <nicolasroard@google.com>2011-03-31 15:54:41 -0700
commit39ff342cb3755bb7529c775a6d15b1ccbbe9be6a (patch)
treeb67b9960c725dbec097c734a314fc5dfed9a5735 /WebCore/platform
parentbd14a6fcc48d3d5713574a34c441f84296a03c0b (diff)
downloadexternal_webkit-39ff342cb3755bb7529c775a6d15b1ccbbe9be6a.zip
external_webkit-39ff342cb3755bb7529c775a6d15b1ccbbe9be6a.tar.gz
external_webkit-39ff342cb3755bb7529c775a6d15b1ccbbe9be6a.tar.bz2
Fix regression impacting Flash performances
We marked layers dirty when they did not have a texture -- even the layers that did not *need* a texture... bug:4195690 Change-Id: Ic2a0fdf9462277d060f07ef7d281f5d27e7e8ed5
Diffstat (limited to 'WebCore/platform')
-rw-r--r--WebCore/platform/graphics/android/LayerAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp
index 433e7ec..6a43745 100644
--- a/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -946,7 +946,7 @@ bool LayerAndroid::drawGL(GLWebViewState* glWebViewState, SkMatrix& matrix)
m_drawOpacity, true);
}
m_drawingTexture->consumerRelease();
- } else {
+ } else if (needsTexture()) {
m_dirty = true;
}