[CoordGraphics] UpdateAtlas constructor should receive an IntSize, not a dimension...
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / CoordinatedGraphics / CompositingCoordinator.cpp
index d048273..9ef8582 100644 (file)
@@ -394,8 +394,8 @@ RefPtr<CoordinatedBuffer> CompositingCoordinator::getCoordinatedBuffer(const Int
         }
     }
 
-    static const int ScratchBufferDimension = 1024;
-    m_updateAtlases.append(std::make_unique<UpdateAtlas>(*this, ScratchBufferDimension, flags));
+    static const IntSize s_atlasSize { 1024, 1024 }; // This should be a square.
+    m_updateAtlases.append(std::make_unique<UpdateAtlas>(*this, s_atlasSize, flags));
     scheduleReleaseInactiveAtlases();
     return m_updateAtlases.last()->getCoordinatedBuffer(size, atlasID, allocatedRect);
 }