Fix a crash when resizing an OSR browser window (issue #2614)
This commit is contained in:
parent
18ef4f72c7
commit
feffedbae9
|
@ -1139,6 +1139,17 @@ CefRenderWidgetHostViewOSR::CreateSyntheticGestureTarget() {
|
||||||
new content::SyntheticGestureTargetBase(host()));
|
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) {
|
void CefRenderWidgetHostViewOSR::SetNeedsBeginFrames(bool enabled) {
|
||||||
SetFrameRate();
|
SetFrameRate();
|
||||||
|
|
||||||
|
|
|
@ -174,10 +174,8 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase,
|
||||||
void GetScreenInfo(content::ScreenInfo* results) const override;
|
void GetScreenInfo(content::ScreenInfo* results) const override;
|
||||||
void TransformPointToRootSurface(gfx::PointF* point) override;
|
void TransformPointToRootSurface(gfx::PointF* point) override;
|
||||||
gfx::Rect GetBoundsInRootWindow() override;
|
gfx::Rect GetBoundsInRootWindow() override;
|
||||||
#if defined(OS_MACOSX)
|
|
||||||
viz::ScopedSurfaceIdAllocator DidUpdateVisualProperties(
|
viz::ScopedSurfaceIdAllocator DidUpdateVisualProperties(
|
||||||
const cc::RenderFrameMetadata& metadata) override;
|
const cc::RenderFrameMetadata& metadata) override;
|
||||||
#endif
|
|
||||||
viz::SurfaceId GetCurrentSurfaceId() const override;
|
viz::SurfaceId GetCurrentSurfaceId() const override;
|
||||||
content::BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
|
content::BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
|
||||||
content::BrowserAccessibilityDelegate* delegate,
|
content::BrowserAccessibilityDelegate* delegate,
|
||||||
|
|
Loading…
Reference in New Issue