mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix a crash when resizing an OSR browser window (issue #2614)
This commit is contained in:
committed by
Marshall Greenblatt
parent
18ef4f72c7
commit
feffedbae9
@@ -1139,6 +1139,17 @@ CefRenderWidgetHostViewOSR::CreateSyntheticGestureTarget() {
|
||||
new content::SyntheticGestureTargetBase(host()));
|
||||
}
|
||||
|
||||
#if !defined(OS_MACOSX)
|
||||
viz::ScopedSurfaceIdAllocator
|
||||
CefRenderWidgetHostViewOSR::DidUpdateVisualProperties(
|
||||
const cc::RenderFrameMetadata& metadata) {
|
||||
base::OnceCallback<void()> allocation_task =
|
||||
base::BindOnce(&CefRenderWidgetHostViewOSR::SynchronizeVisualProperties,
|
||||
weak_ptr_factory_.GetWeakPtr());
|
||||
return viz::ScopedSurfaceIdAllocator(std::move(allocation_task));
|
||||
}
|
||||
#endif
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SetNeedsBeginFrames(bool enabled) {
|
||||
SetFrameRate();
|
||||
|
||||
|
Reference in New Issue
Block a user