Commit 8dd7c4cd authored by Vikas Soni's avatar Vikas Soni Committed by Commit Bot

Pass |context_state| in SharedImageRepresentationSkiaGL::Create.

A recent change -
https://chromium-review.googlesource.com/c/chromium/src/+/1783526
requires |context_state| to be passed to
SharedImageRepresentationSkiaGL::Create().
This started causing nullptr deref crashes since it was passed as
nullptr before in SharedImageVideo.

Change-Id: Ia060262be9c0a28b7b62ef318cd83fe5d22880f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807603
Auto-Submit: vikas soni <vikassoni@chromium.org>
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697195}
parent de4bbf9e
...@@ -500,8 +500,9 @@ std::unique_ptr<SharedImageRepresentationSkia> SharedImageVideo::ProduceSkia( ...@@ -500,8 +500,9 @@ std::unique_ptr<SharedImageRepresentationSkia> SharedImageVideo::ProduceSkia(
auto gl_representation = auto gl_representation =
std::make_unique<SharedImageRepresentationGLTextureVideo>( std::make_unique<SharedImageRepresentationGLTextureVideo>(
manager, this, tracker, texture); manager, this, tracker, texture);
return SharedImageRepresentationSkiaGL::Create( return SharedImageRepresentationSkiaGL::Create(std::move(gl_representation),
std::move(gl_representation), nullptr, manager, this, tracker); std::move(context_state),
manager, this, tracker);
} }
void SharedImageVideo::BeginGLReadAccess() { void SharedImageVideo::BeginGLReadAccess() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment