| Index: content/browser/android/in_process/synchronous_compositor_impl.cc
|
| diff --git a/content/browser/android/in_process/synchronous_compositor_impl.cc b/content/browser/android/in_process/synchronous_compositor_impl.cc
|
| index 5963ac59523e0ce806f1dd4df017b6745a73a212..4329ce5f9fa74c61587b1b61b31efe25b4a13da3 100644
|
| --- a/content/browser/android/in_process/synchronous_compositor_impl.cc
|
| +++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
|
| @@ -274,7 +274,9 @@ void SynchronousCompositorImpl::OnNeedsBeginFramesChange(
|
| }
|
|
|
| void SynchronousCompositorImpl::BeginFrame(const cc::BeginFrameArgs& args) {
|
| - if (!registered_with_client_) {
|
| + if (!registered_with_client_ && is_active_ && renderer_needs_begin_frames_) {
|
| + // Make sure this is a BeginFrame that renderer side explicitly requested.
|
| + // Otherwise it is possible renderer objects not initialized.
|
| RegisterWithClient();
|
| DCHECK(registered_with_client_);
|
| }
|
|
|