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

Issue 568073004: Fix recording of saveLayout with unusual Xfermodes. (Closed)

Created:
6 years, 3 months ago by dneto
Modified:
6 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fix recording of saveLayout with unusual Xfermodes. This is the root cause of a Chrome rendering bug when it tiles layers with masks. BUG=skia:1291, chromium:401593 Committed: https://skia.googlesource.com/skia/+/327f905d2cb0d37c302d651d8f2b17ea56368467

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fixed member var names, formatting, copied comment #

Total comments: 6

Patch Set 3 : Test now uses EXPERIMENTAL/DEPRECATED_recording, better comments #

Patch Set 4 : Use SkIntToScalar to convert from int to float. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -4 lines) Patch
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkBBoxHierarchyRecord.cpp View 1 chunk +29 lines, -2 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 1 chunk +37 lines, -2 lines 0 comments Download
A tests/RecordingXfermodeTest.cpp View 1 2 3 1 chunk +240 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
dneto
https://codereview.chromium.org/568073004/diff/1/src/core/SkBBoxHierarchyRecord.cpp File src/core/SkBBoxHierarchyRecord.cpp (right): https://codereview.chromium.org/568073004/diff/1/src/core/SkBBoxHierarchyRecord.cpp#newcode41 src/core/SkBBoxHierarchyRecord.cpp:41: if (!needToHandleBBox && paint) { The obvious thing would ...
6 years, 3 months ago (2014-09-12 18:23:03 UTC) #2
mtklein
Most of my comments are nitty. The code generally looks good to me. https://codereview.chromium.org/568073004/diff/1/src/core/SkBBoxHierarchyRecord.cpp File ...
6 years, 3 months ago (2014-09-12 19:20:08 UTC) #3
Justin Novosad
You should add a test that exercises this fix. There is already a gm test ...
6 years, 3 months ago (2014-09-12 20:17:06 UTC) #5
mtklein
junov, does the already-existing new test not test this to your satisfaction? https://codereview.chromium.org/568073004/diff/1/src/core/SkBBoxHierarchyRecord.cpp File src/core/SkBBoxHierarchyRecord.cpp ...
6 years, 3 months ago (2014-09-12 20:23:07 UTC) #6
mtklein
https://codereview.chromium.org/568073004/diff/20001/tests/RecordingXfermodeTest.cpp File tests/RecordingXfermodeTest.cpp (right): https://codereview.chromium.org/568073004/diff/20001/tests/RecordingXfermodeTest.cpp#newcode132 tests/RecordingXfermodeTest.cpp:132: SkCanvas* canvas = recorder.beginRecording( fWidth, fHeight, &factory); If you'd ...
6 years, 3 months ago (2014-09-12 20:38:27 UTC) #7
dneto
On 2014/09/12 20:17:06, junov wrote: > You should add a test that exercises this fix. ...
6 years, 3 months ago (2014-09-12 20:40:00 UTC) #8
dneto
I've fixed the nitty gritty issues: formatting, bracing, naming of member variables. I've also copied ...
6 years, 3 months ago (2014-09-12 20:41:42 UTC) #9
mtklein
thanks, sorry for doing this review in waves. close now https://codereview.chromium.org/568073004/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/568073004/diff/20001/src/core/SkRecordDraw.cpp#newcode250 ...
6 years, 3 months ago (2014-09-12 20:57:17 UTC) #10
Justin Novosad
Sorry, I missed the test first time I looked. (How did that happen?)
6 years, 3 months ago (2014-09-12 21:02:40 UTC) #11
dneto
Thanks for the feedback. I've addressed Mike's comment #7 and changed the test to explicitly ...
6 years, 3 months ago (2014-09-15 15:48:49 UTC) #12
mtklein
lgtm
6 years, 3 months ago (2014-09-15 16:14:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568073004/40001
6 years, 3 months ago (2014-09-15 16:14:17 UTC) #15
mtklein
On 2014/09/15 16:14:17, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 3 months ago (2014-09-15 16:23:10 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/1764)
6 years, 3 months ago (2014-09-15 16:29:30 UTC) #18
dneto
On 2014/09/15 16:23:10, mtklein wrote: > On 2014/09/15 16:14:17, I haz the power (commit-bot) wrote: ...
6 years, 3 months ago (2014-09-15 17:33:03 UTC) #19
dneto
Now the test uses SkIntToScalar. This should satisfy the MSVC compiler. This version passes the ...
6 years, 3 months ago (2014-09-15 17:43:11 UTC) #20
mtklein
lgtm
6 years, 3 months ago (2014-09-15 17:44:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568073004/60001
6 years, 3 months ago (2014-09-15 17:44:53 UTC) #23
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 17:53:21 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 327f905d2cb0d37c302d651d8f2b17ea56368467

Powered by Google App Engine
This is Rietveld 408576698