summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-07-19 10:39:31 -0700
committerChris Craik <ccraik@google.com>2012-07-19 14:18:38 -0700
commitf899e6e3a8952453ea79363d36a4d171eebb0fbb (patch)
treeaabddfb4a019dd9a51cf7abbc69ad87bbd6a4abd /Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp
parentcbf95b35591b40a9424e54d765694b378ef11966 (diff)
downloadexternal_webkit-f899e6e3a8952453ea79363d36a4d171eebb0fbb.zip
external_webkit-f899e6e3a8952453ea79363d36a4d171eebb0fbb.tar.gz
external_webkit-f899e6e3a8952453ea79363d36a4d171eebb0fbb.tar.bz2
Perform check for text/content on recording context PicturePiles
Only implemented for now when USE_RECORDING_CONTEXT is enabled. Standard SkPicture PicturePile implementation defaults to hasText = hasContent = true. Change-Id: I535b53151963bf8c415e420c1d5a789954e98cbf
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp b/Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp
index f012c42..e40c9b6 100644
--- a/Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp
+++ b/Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp
@@ -45,16 +45,6 @@ int PictureLayerContent::height()
return m_picture->height();
}
-bool PictureLayerContent::isEmpty()
-{
- if (!m_picture)
- return true;
- if (m_picture->width() == 0
- || m_picture->height() == 0)
- return true;
- return false;
-}
-
void PictureLayerContent::checkForOptimisations()
{
if (!m_checkedContent)