diff options
author | Chris Craik <ccraik@google.com> | 2012-07-19 10:39:31 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-07-19 14:18:38 -0700 |
commit | f899e6e3a8952453ea79363d36a4d171eebb0fbb (patch) | |
tree | aabddfb4a019dd9a51cf7abbc69ad87bbd6a4abd /Source/WebCore/platform/graphics/android/layers/PictureLayerContent.cpp | |
parent | cbf95b35591b40a9424e54d765694b378ef11966 (diff) | |
download | external_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.cpp | 10 |
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) |