Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(38)

Issue 1181963006: Removing unnecessary assert from BitmapImage::draw (Closed)

Created:
4 years, 10 months ago by Justin Novosad
Modified:
4 years, 10 months ago
Reviewers:
chrishtr
CC:
blink-reviews, Rik, danakj, dshwang, krit, eric.carlson_apple.com, feature-media-reviews_chromium.org, f(malita), jbroman, mlamouri+watch-blink_chromium.org, pdr+graphicswatchlist_chromium.org, philipj_slow, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Removing unnecessary asserts from BitmapImage::draw BUG=496605 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197066

Patch Set 1 #

Total comments: 1

Patch Set 2 : v2 #

Patch Set 3 : remove assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M Source/platform/graphics/BitmapImage.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Justin Novosad
PTAL
4 years, 10 months ago (2015-06-12 16:38:11 UTC) #2
chrishtr
https://codereview.chromium.org/1181963006/diff/1/Source/platform/graphics/GraphicsContext.cpp File Source/platform/graphics/GraphicsContext.cpp (left): https://codereview.chromium.org/1181963006/diff/1/Source/platform/graphics/GraphicsContext.cpp#oldcode949 Source/platform/graphics/GraphicsContext.cpp:949: image->draw(m_canvas, imagePaint, dest, src, shouldRespectImageOrientation, Image::ClampImageToSourceRect); Why is the ...
4 years, 10 months ago (2015-06-12 16:45:12 UTC) #3
Justin Novosad
On 2015/06/12 16:45:12, chrishtr wrote: > https://codereview.chromium.org/1181963006/diff/1/Source/platform/graphics/GraphicsContext.cpp > File Source/platform/graphics/GraphicsContext.cpp (left): > > https://codereview.chromium.org/1181963006/diff/1/Source/platform/graphics/GraphicsContext.cpp#oldcode949 > ...
4 years, 10 months ago (2015-06-12 17:06:49 UTC) #4
Justin Novosad
After some digging... the right fix is to just remove the asserts. Skia handles the ...
4 years, 10 months ago (2015-06-12 19:18:14 UTC) #5
chrishtr
On 2015/06/12 at 19:18:14, junov wrote: > After some digging... the right fix is to ...
4 years, 10 months ago (2015-06-12 19:44:27 UTC) #6
Justin Novosad
Sure. Skia just rejects the draw command when dest rect is inverted (in SkCanvas::quickReject), which ...
4 years, 10 months ago (2015-06-12 20:14:35 UTC) #7
chrishtr
lgtm
4 years, 10 months ago (2015-06-12 20:19:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181963006/40001
4 years, 10 months ago (2015-06-12 20:19:57 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2015-06-12 22:30:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197066

Powered by Google App Engine
This is Rietveld 408576698