Skip to content

Commit

Permalink
Use CHECK_EQ to get better error message
Browse files Browse the repository at this point in the history
Make SkiaGLImageRepresentation::CheckContext() use CHECK_EQ so it prints
both values on error.

Bug: 1359024
Change-Id: Ie686e7ff158317d34ea8865ea7efc2976fa1c843
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3880263
Auto-Submit: Kyle Charbonneau <kylechar@chromium.org>
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Kyle Charbonneau <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044358}
  • Loading branch information
kylechar authored and Chromium LUCI CQ committed Sep 8, 2022
1 parent e823df8 commit 5084e05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void SkiaGLImageRepresentation::EndReadAccess() {

void SkiaGLImageRepresentation::CheckContext() {
#if DCHECK_IS_ON()
DCHECK(gl::GLContext::GetCurrent() == context_);
DCHECK_EQ(gl::GLContext::GetCurrent(), context_);
#endif
}

Expand Down

0 comments on commit 5084e05

Please sign in to comment.