diff options
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp | 6 | ||||
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp index f3415af..f96feb5 100644 --- a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.cpp @@ -158,16 +158,12 @@ bool SurfaceCollection::isReady() bool SurfaceCollection::isBaseSurfaceReady() { - if (!m_compositedRoot || !m_surfaces[0]) - return false; + // m_surfaces[0] should be the base surface when in single surface mode. return m_surfaces[0]->isReady(); } bool SurfaceCollection::isMissingBackgroundContent() { - if (!m_compositedRoot) - return true; - // return true when the first surface is missing content (indicating the // entire viewport isn't covered) return m_surfaces[0]->isMissingContent(); diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h index b502142..97d5c73 100644 --- a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h +++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h @@ -72,7 +72,7 @@ public: private: void updateLayerPositions(const SkRect& visibleContentRect); - BaseLayerAndroid* m_compositedRoot; + BaseLayerAndroid* const m_compositedRoot; WTF::Vector<Surface*> m_surfaces; }; |