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

Issue 835813002: Clean up dead clear() code in SkRecord. (Closed)

Created:
5 years, 11 months ago by mtklein_C
Modified:
5 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Clean up dead clear() code in SkRecord. This removes the SkRecords::Clear struct and everything that refers to it. Notice there is nothing actually creating a Clear, which means this is all dead code. Now that all ops obey the clip, I don't think we need the weird inflate-empty-to-epsilon hack for BBH queries. BUG=skia: Committed: https://skia.googlesource.com/skia/+/49aabde6ef80e39f00a2d00487cf5a881987dd81

Patch Set 1 #

Patch Set 2 : Delete the test. #

Total comments: 3

Patch Set 3 : clearer? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -44 lines) Patch
M src/core/SkRecordDraw.cpp View 1 2 4 chunks +1 line, -6 lines 0 comments Download
M src/core/SkRecords.h View 2 chunks +0 lines, -4 lines 0 comments Download
M tests/PictureBBHTest.cpp View 1 3 chunks +2 lines, -34 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
mtklein
First review wins.
5 years, 11 months ago (2015-01-04 15:18:31 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835813002/1
5 years, 11 months ago (2015-01-04 15:19:28 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-04 15:19:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835813002/20001
5 years, 11 months ago (2015-01-04 15:23:57 UTC) #7
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 11 months ago (2015-01-04 15:23:58 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
5 years, 11 months ago (2015-01-04 21:23:59 UTC) #10
reed1
https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cpp#newcode28 src/core/SkRecordDraw.cpp:28: (void)canvas->getClipBounds(&query); not sure why the new form is clearer.
5 years, 11 months ago (2015-01-05 14:45:30 UTC) #11
reed1
lgtm
5 years, 11 months ago (2015-01-05 14:45:35 UTC) #12
mtklein
https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cpp#newcode28 src/core/SkRecordDraw.cpp:28: (void)canvas->getClipBounds(&query); On 2015/01/05 14:45:30, reed1 wrote: > not sure ...
5 years, 11 months ago (2015-01-05 14:49:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835813002/40001
5 years, 11 months ago (2015-01-05 14:54:20 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/49aabde6ef80e39f00a2d00487cf5a881987dd81
5 years, 11 months ago (2015-01-05 15:02:49 UTC) #16
reed1
5 years, 11 months ago (2015-01-05 16:26:08 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cpp
File src/core/SkRecordDraw.cpp (right):

https://codereview.chromium.org/835813002/diff/20001/src/core/SkRecordDraw.cp...
src/core/SkRecordDraw.cpp:28: (void)canvas->getClipBounds(&query);
On 2015/01/05 14:49:17, mtklein wrote:
> On 2015/01/05 14:45:30, reed1 wrote:
> > not sure why the new form is clearer.
> 
> You're saying you prefer
>   SkRect query;
>   if (!canvas->getClipBounds(&query)) {
>     query.setEmpty();
>   }
> ?  That'd be fine with me.

danke

Powered by Google App Engine
This is Rietveld 408576698