Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ LayerTreeHost::LayerTreeHost(WebPage& webPage)
m_layerTreeContext.contextID = m_surface->surfaceID();

didChangeViewport();

initialized.store(true);
}

LayerTreeHost::~LayerTreeHost()
Expand Down Expand Up @@ -394,7 +396,9 @@ void LayerTreeHost::updateScene()

void LayerTreeHost::frameComplete()
{
m_compositor->frameComplete();
if (initialized.load()) {
m_compositor->frameComplete();
}
}

uint64_t LayerTreeHost::nativeSurfaceHandleForCompositing()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <wtf/Forward.h>
#include <wtf/OptionSet.h>
#include <wtf/RunLoop.h>
#include <atomic>

#if USE(GRAPHICS_LAYER_TEXTURE_MAPPER)

Expand Down Expand Up @@ -220,6 +221,7 @@ class LayerTreeHost
double m_transientZoomScale { 1 };
WebCore::FloatPoint m_transientZoomOrigin;
#endif
std::atomic_bool initialized { false };
};

#if !USE(COORDINATED_GRAPHICS)
Expand Down