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

Issue 417153002: Avoid passing uninitialized value to markRectAsNonOpaque. (Closed)

Created:
6 years, 5 months ago by sohanjg
Modified:
5 years, 1 month ago
Reviewers:
danakj, Stephen White, reed2
CC:
blink-reviews, jamesr, krit, jbroman, Rik, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Avoid passing uninitialized value to markRectAsNonOpaque. While applying opaque region for layer if device clip is not a rect we don't alter the opaque rect, and if we have a non-opaque preserving transfer mode along with it, we mark the opaque rect as empty. BUG=390999 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179741

Patch Set 1 #

Patch Set 2 : review comments addressed. #

Total comments: 4

Patch Set 3 : review comments + test #

Total comments: 5

Patch Set 4 : Tests Updated. #

Total comments: 8

Patch Set 5 : review comments addressed. #

Total comments: 6

Patch Set 6 : tests updated. #

Total comments: 8

Patch Set 7 : review comments addressed. #

Total comments: 10

Patch Set 8 : updated tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -3 lines) Patch
M Source/platform/graphics/GraphicsContextTest.cpp View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
M Source/platform/graphics/RegionTracker.cpp View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 42 (1 generated)
sohanjg
Linux_msan_chrome nags about this uninitialized value being sent, hence the changes. PTAL, thanks.
6 years, 5 months ago (2014-07-25 11:35:38 UTC) #1
danakj
On 2014/07/25 11:35:38, sohanjg wrote: > Linux_msan_chrome nags about this uninitialized value being sent, hence ...
6 years, 5 months ago (2014-07-27 11:28:37 UTC) #2
Stephen White
On 2014/07/27 11:28:37, danakj_OOO_until_Aug_3 wrote: > On 2014/07/25 11:35:38, sohanjg wrote: > > Linux_msan_chrome nags ...
6 years, 4 months ago (2014-07-27 15:31:45 UTC) #3
Stephen White
On 2014/07/27 15:31:45, Stephen White wrote: > On 2014/07/27 11:28:37, danakj_OOO_until_Aug_3 wrote: > > On ...
6 years, 4 months ago (2014-07-27 15:45:12 UTC) #4
danakj
On 2014/07/27 15:45:12, Stephen White wrote: > On 2014/07/27 15:31:45, Stephen White wrote: > > ...
6 years, 4 months ago (2014-07-27 16:27:20 UTC) #5
sohanjg
On 2014/07/27 16:27:20, danakj_OOO_until_Aug_3 wrote: > On 2014/07/27 15:45:12, Stephen White wrote: > > On ...
6 years, 4 months ago (2014-07-28 12:39:16 UTC) #6
danakj
Existing tests are here https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp&rcl=1406494503&l=69
6 years, 4 months ago (2014-07-28 14:02:28 UTC) #7
danakj
https://codereview.chromium.org/417153002/diff/20001/Source/platform/graphics/skia/OpaqueRegionSkia.cpp File Source/platform/graphics/skia/OpaqueRegionSkia.cpp (right): https://codereview.chromium.org/417153002/diff/20001/Source/platform/graphics/skia/OpaqueRegionSkia.cpp#newcode336 Source/platform/graphics/skia/OpaqueRegionSkia.cpp:336: if (deviceClipRect.isEmpty() && deviceClipIsARect) reverse this order https://codereview.chromium.org/417153002/diff/20001/Source/platform/graphics/skia/OpaqueRegionSkia.cpp#newcode345 Source/platform/graphics/skia/OpaqueRegionSkia.cpp:345: ...
6 years, 4 months ago (2014-07-28 14:03:57 UTC) #8
sohanjg
Please take a look, thanks. https://codereview.chromium.org/417153002/diff/20001/Source/platform/graphics/skia/OpaqueRegionSkia.cpp File Source/platform/graphics/skia/OpaqueRegionSkia.cpp (right): https://codereview.chromium.org/417153002/diff/20001/Source/platform/graphics/skia/OpaqueRegionSkia.cpp#newcode336 Source/platform/graphics/skia/OpaqueRegionSkia.cpp:336: if (deviceClipRect.isEmpty() && deviceClipIsARect) ...
6 years, 4 months ago (2014-07-30 10:23:46 UTC) #9
danakj
https://codereview.chromium.org/417153002/diff/40001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/40001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1047 Source/platform/graphics/GraphicsContextTest.cpp:1047: SkBitmap bitmap; What makes the device clip not a ...
6 years, 4 months ago (2014-07-30 13:31:26 UTC) #10
sohanjg
https://codereview.chromium.org/417153002/diff/40001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/40001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1047 Source/platform/graphics/GraphicsContextTest.cpp:1047: SkBitmap bitmap; On 2014/07/30 13:31:25, danakj_OOO_until_Aug_3 wrote: > What ...
6 years, 4 months ago (2014-07-30 13:41:54 UTC) #11
danakj
Set the clip with a path? On Jul 30, 2014 3:41 PM, <sohan.jyoti@samsung.com> wrote: > ...
6 years, 4 months ago (2014-07-31 09:13:56 UTC) #12
sohanjg
Yea, setting device clip with path works well. Please take a look. Thanks. https://codereview.chromium.org/417153002/diff/40001/Source/platform/graphics/GraphicsContextTest.cpp File ...
6 years, 4 months ago (2014-07-31 15:44:34 UTC) #13
sohanjg
danakj@, senorblanco@ if you may please provide your feedback on this. thanks!
6 years, 4 months ago (2014-08-04 16:20:20 UTC) #14
Stephen White
On 2014/08/04 16:20:20, sohanjg wrote: > danakj@, senorblanco@ if you may please provide your feedback ...
6 years, 4 months ago (2014-08-04 17:16:22 UTC) #15
danakj
https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1052 Source/platform/graphics/GraphicsContextTest.cpp:1052: SkCanvas canvas(50, 50); can you make the canvas bigger ...
6 years, 4 months ago (2014-08-05 13:53:28 UTC) #16
danakj
https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/RegionTracker.cpp File Source/platform/graphics/RegionTracker.cpp (left): https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/RegionTracker.cpp#oldcode367 Source/platform/graphics/RegionTracker.cpp:367: if (!deviceClipIsARect) What if !deviceClipIsARect but outsideSourceOpaqueRectPreservesOpaque? We need ...
6 years, 4 months ago (2014-08-05 13:54:15 UTC) #17
sohanjg
please take a look,thanks. https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/60001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1052 Source/platform/graphics/GraphicsContextTest.cpp:1052: SkCanvas canvas(50, 50); On 2014/08/05 ...
6 years, 4 months ago (2014-08-05 15:23:21 UTC) #18
danakj
https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1060 Source/platform/graphics/GraphicsContextTest.cpp:1060: context.fillRect(FloatRect(30, 30, 90, 90), opaque, CompositeSourceOver); Can you EXPECT_EQ ...
6 years, 4 months ago (2014-08-05 15:26:55 UTC) #19
sohanjg
https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1086 Source/platform/graphics/GraphicsContextTest.cpp:1086: context2.fillRect(FloatRect(30, 30, 90, 90), opaque, CompositeSourceOver); On 2014/08/05 15:26:54, ...
6 years, 4 months ago (2014-08-05 16:48:12 UTC) #20
danakj
https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1086 Source/platform/graphics/GraphicsContextTest.cpp:1086: context2.fillRect(FloatRect(30, 30, 90, 90), opaque, CompositeSourceOver); On 2014/08/05 16:48:12, ...
6 years, 4 months ago (2014-08-05 17:18:34 UTC) #21
sohanjg
please take a look, thanks! https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/80001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1060 Source/platform/graphics/GraphicsContextTest.cpp:1060: context.fillRect(FloatRect(30, 30, 90, 90), ...
6 years, 4 months ago (2014-08-06 05:56:21 UTC) #22
danakj
Thanks, sorry, I think the tests are close not need a bit of care to ...
6 years, 4 months ago (2014-08-06 13:53:34 UTC) #23
sohanjg
https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1074 Source/platform/graphics/GraphicsContextTest.cpp:1074: On 2014/08/06 13:53:34, danakj wrote: > If the clip ...
6 years, 4 months ago (2014-08-06 14:09:26 UTC) #24
danakj
https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1074 Source/platform/graphics/GraphicsContextTest.cpp:1074: On 2014/08/06 14:09:26, sohanjg wrote: > On 2014/08/06 13:53:34, ...
6 years, 4 months ago (2014-08-06 14:17:28 UTC) #25
sohanjg
https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1074 Source/platform/graphics/GraphicsContextTest.cpp:1074: On 2014/08/06 14:17:28, danakj wrote: > On 2014/08/06 14:09:26, ...
6 years, 4 months ago (2014-08-06 14:30:07 UTC) #26
danakj
https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/100001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1074 Source/platform/graphics/GraphicsContextTest.cpp:1074: On 2014/08/06 14:30:07, sohanjg wrote: > On 2014/08/06 14:17:28, ...
6 years, 4 months ago (2014-08-06 14:32:10 UTC) #27
sohanjg
sorry for the tests not being fully convincing, have updated them, please take a look. ...
6 years, 4 months ago (2014-08-07 08:07:46 UTC) #28
danakj
Thanks, they look better but I still don't see an intersection happening? https://codereview.chromium.org/417153002/diff/120001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp ...
6 years, 4 months ago (2014-08-07 12:49:56 UTC) #29
sohanjg
please take a look, thanks. https://codereview.chromium.org/417153002/diff/120001/Source/platform/graphics/GraphicsContextTest.cpp File Source/platform/graphics/GraphicsContextTest.cpp (right): https://codereview.chromium.org/417153002/diff/120001/Source/platform/graphics/GraphicsContextTest.cpp#newcode1060 Source/platform/graphics/GraphicsContextTest.cpp:1060: On 2014/08/07 12:49:55, danakj ...
6 years, 4 months ago (2014-08-07 14:05:20 UTC) #30
danakj
Thanks, LGTM
6 years, 4 months ago (2014-08-07 14:13:14 UTC) #31
sohanjg
The CQ bit was checked by sohan.jyoti@samsung.com
6 years, 4 months ago (2014-08-07 14:42:22 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/417153002/140001
6 years, 4 months ago (2014-08-07 14:42:50 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-08-07 16:08:59 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 16:12:01 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/12135)
6 years, 4 months ago (2014-08-07 16:12:02 UTC) #36
sohanjg
On 2014/08/07 16:12:02, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-07 18:26:15 UTC) #37
Stephen White
LGTM
6 years, 4 months ago (2014-08-07 19:12:24 UTC) #38
sohanjg
The CQ bit was checked by sohan.jyoti@samsung.com
6 years, 4 months ago (2014-08-07 19:15:29 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/417153002/140001
6 years, 4 months ago (2014-08-07 19:16:21 UTC) #40
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 19:25:19 UTC) #41
Message was sent while issue was closed.
Change committed as 179741

Powered by Google App Engine
This is Rietveld 408576698