diff options
author | Chris Craik <ccraik@google.com> | 2012-06-05 14:10:40 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-06-05 14:10:40 -0700 |
commit | d3fa9c806c1d877caa561206c38047ad905ca668 (patch) | |
tree | f56c404a819e99a87e99eb241a7fad20d1ebd21b /Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp | |
parent | 988183e308148947b034b108c552e719eaff74fb (diff) | |
download | external_webkit-d3fa9c806c1d877caa561206c38047ad905ca668.zip external_webkit-d3fa9c806c1d877caa561206c38047ad905ca668.tar.gz external_webkit-d3fa9c806c1d877caa561206c38047ad905ca668.tar.bz2 |
Reduce base layer false clip size to avoid rounding issues
bug:6605853
Change-Id: I65583e61197452ac70c5adf5f967182f0fd7578a
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp index 0f01fe2..d709a9c 100644 --- a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp @@ -273,6 +273,9 @@ void LayerAndroid::addDirtyArea() return; } + // TODO: rewrite this to handle partial invalidate, and to handle base + // layer's large clip correctly + IntSize layerSize(getSize().width(), getSize().height()); FloatRect area = @@ -284,6 +287,7 @@ void LayerAndroid::addDirtyArea() area.intersect(clip); IntRect dirtyArea(area.x(), area.y(), area.width(), area.height()); + state()->addDirtyArea(dirtyArea); } |