diff options
author | John Reck <jreck@google.com> | 2012-03-14 21:06:41 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-03-20 09:56:23 -0700 |
commit | a144ac64329978c258faadf3bc484cf4ae6c5d0d (patch) | |
tree | ebc3fdbea6ac1561330d4a94e67305aae495c6b7 /Source/WebCore/platform/graphics/android/LayerAndroid.cpp | |
parent | 640bfa989e82aad4ff79ff786f31a6962c37d8fd (diff) | |
download | external_webkit-a144ac64329978c258faadf3bc484cf4ae6c5d0d.zip external_webkit-a144ac64329978c258faadf3bc484cf4ae6c5d0d.tar.gz external_webkit-a144ac64329978c258faadf3bc484cf4ae6c5d0d.tar.bz2 |
Canvas on a texture
Change-Id: I841b3e021298738c91701068992798a55290a520
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/LayerAndroid.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.cpp b/Source/WebCore/platform/graphics/android/LayerAndroid.cpp index 946d2a3..6d8dc34 100644 --- a/Source/WebCore/platform/graphics/android/LayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/LayerAndroid.cpp @@ -791,6 +791,16 @@ void LayerAndroid::clearDirtyRegion() m_dirtyRegion.setEmpty(); } +int LayerAndroid::setHwAccelerated(bool hwAccelerated) +{ + int flags = InvalidateNone; + int count = this->countChildren(); + for (int i = 0; i < count; i++) + flags |= this->getChild(i)->setHwAccelerated(hwAccelerated); + + return flags | onSetHwAccelerated(hwAccelerated); +} + IntRect LayerAndroid::unclippedArea() { IntRect area; |