osr: Fix GPU process crash with SendExternalBeginFrame (see issue #2800)

Fixes the following error:
Check failed: !pending_frame_callback_. Got overlapping IssueExternalBeginFrame

To test:
Run `cefclient --off-screen-rendering-enabled --external-begin-frame-enabled`
on Windows without crashing.
This commit is contained in:
Marshall Greenblatt
2021-10-28 15:11:22 -04:00
parent fae1402a6e
commit 3a2a22f30d
2 changed files with 12 additions and 3 deletions

View File

@@ -355,6 +355,7 @@ class CefRenderWidgetHostViewOSR
// Provides |source_id| for BeginFrameArgs that we create.
viz::StubBeginFrameSource begin_frame_source_;
uint64_t begin_frame_number_ = viz::BeginFrameArgs::kStartingFrameNumber;
bool begin_frame_pending_ = false;
bool sync_frame_rate_ = false;
bool external_begin_frame_enabled_ = false;