Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 2014853002: Remove a DCHECK in BitmapUploader which causes crash in some unittests (Closed)

Created:
4 years, 6 months ago by Peng
Modified:
4 years, 6 months ago
Reviewers:
sadrul
CC:
chromium-reviews, jonross
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a DCHECK in BitmapUploader which causes crash in some unittests In some unittests, the BitmapUploader will be constructed, but it will never be used. So the DCHECK causes unnecessary crashes for those unittests, so remove it. BUG=614911

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M components/bitmap_uploader/bitmap_uploader.cc View 1 chunk +2 lines, -1 line 2 comments Download

Messages

Total messages: 5 (2 generated)
Peng
Hi Sadrul, PTAL. Thanks.
4 years, 6 months ago (2016-05-26 15:35:01 UTC) #3
sadrul
https://codereview.chromium.org/2014853002/diff/1/components/bitmap_uploader/bitmap_uploader.cc File components/bitmap_uploader/bitmap_uploader.cc (right): https://codereview.chromium.org/2014853002/diff/1/components/bitmap_uploader/bitmap_uploader.cc#newcode53 components/bitmap_uploader/bitmap_uploader.cc:53: gles2_context_.reset(); Can you add a DCHECK here that if ...
4 years, 6 months ago (2016-05-26 15:41:35 UTC) #4
Peng
4 years, 6 months ago (2016-05-30 14:04:26 UTC) #5
https://codereview.chromium.org/2014853002/diff/1/components/bitmap_uploader/...
File components/bitmap_uploader/bitmap_uploader.cc (right):

https://codereview.chromium.org/2014853002/diff/1/components/bitmap_uploader/...
components/bitmap_uploader/bitmap_uploader.cc:53: gles2_context_.reset();
On 2016/05/26 15:41:35, sadrul wrote:
> Can you add a DCHECK here that if Initialize() returns false, then that's
> because gpu_service_ had an error of some sort, i.e. install a
> set_connection_error_handler on |gpu_service_|, and DCHECK that the handler
was
> called if Initialize() returned false?

gpu_service_.encountered_error() is not true at here.
But if command_buffer_.encountered_error() is true at
https://code.google.com/p/chromium/codesearch#chromium/src/components/mus/pub...
.

Any thought?

Powered by Google App Engine
This is Rietveld 408576698