Commit 48ac4d1f authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

ImageContextImpl: fix a wrong DCHECK in CreateFallbackImage()

Bug: 974359
Change-Id: Idcc3c80eda39d4c94470c7f5542fea68dc65cc0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1751823
Commit-Queue: Peng Huang <penghuang@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Auto-Submit: Peng Huang <penghuang@chromium.org>
Reviewed-by: default avatarkylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686434}
parent 5413c1f3
...@@ -44,7 +44,7 @@ ImageContextImpl::~ImageContextImpl() { ...@@ -44,7 +44,7 @@ ImageContextImpl::~ImageContextImpl() {
void ImageContextImpl::CreateFallbackImage( void ImageContextImpl::CreateFallbackImage(
gpu::SharedContextState* context_state) { gpu::SharedContextState* context_state) {
DCHECK(!context_state); DCHECK(!fallback_context_state_);
fallback_context_state_ = context_state; fallback_context_state_ = context_state;
SkColorType color_type = ResourceFormatToClosestSkColorType( SkColorType color_type = ResourceFormatToClosestSkColorType(
......
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