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

Issue 1218993002: refactor code to apply the croprect (Closed)

Created:
5 years, 5 months ago by reed1
Modified:
5 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

refactor code to apply the croprect BUG=skia: Committed: https://skia.googlesource.com/skia/+/189186337eb91b0b21c15db42377bbf3ae4acf23

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : ah, need to intersect the crop and the clip to be compatible #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : manual rebase #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -58 lines) Patch
M include/core/SkImageFilter.h View 1 2 3 4 5 6 7 3 chunks +37 lines, -19 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 7 8 3 chunks +61 lines, -39 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
reed1
ptal
5 years, 5 months ago (2015-07-06 15:29:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218993002/100001
5 years, 5 months ago (2015-07-06 15:29:30 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, 5 months ago (2015-07-06 15:29:32 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/1870) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 5 months ago (2015-07-06 15:30:14 UTC) #7
Stephen White
LGTM (once the bots are happy) https://codereview.chromium.org/1218993002/diff/100001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1218993002/diff/100001/include/core/SkImageFilter.h#newcode86 include/core/SkImageFilter.h:86: bool applyTo(const SkIRect& ...
5 years, 5 months ago (2015-07-06 15:37:28 UTC) #9
robertphillips
https://codereview.chromium.org/1218993002/diff/100001/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/1218993002/diff/100001/src/core/SkImageFilter.cpp#newcode65 src/core/SkImageFilter.cpp:65: srcBounds -> imageBounds ? https://codereview.chromium.org/1218993002/diff/100001/src/core/SkImageFilter.cpp#newcode72 src/core/SkImageFilter.cpp:72: transformedR -> xformedCropR ...
5 years, 5 months ago (2015-07-06 16:02:06 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218993002/140001
5 years, 5 months ago (2015-07-16 19:07:25 UTC) #12
reed1
https://codereview.chromium.org/1218993002/diff/100001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1218993002/diff/100001/include/core/SkImageFilter.h#newcode86 include/core/SkImageFilter.h:86: bool applyTo(const SkIRect& imageBounds, const Context&, SkIRect* cropped) const; ...
5 years, 5 months ago (2015-07-16 19:08:47 UTC) #14
Stephen White
Still LGTM
5 years, 5 months ago (2015-07-16 19:18:41 UTC) #15
reed1
Looking at the change to use the crop's WIDTH instead of RIGHT, I think thats ...
5 years, 5 months ago (2015-07-16 20:02:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218993002/160001
5 years, 5 months ago (2015-07-16 20:02:45 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://skia.googlesource.com/skia/+/189186337eb91b0b21c15db42377bbf3ae4acf23
5 years, 5 months ago (2015-07-16 20:17:16 UTC) #20
Stephen White
5 years, 5 months ago (2015-07-16 21:01:26 UTC) #21
Message was sent while issue was closed.
On 2015/07/16 20:02:18, reed1 wrote:
> Looking at the change to use the crop's WIDTH instead of RIGHT, I think thats
> confusing. Perhaps if we changed the enum to be kHasWidth it would be clearer.
> 
> But then again, we've discussed eliminating these flags all together, and
having
> the client resolve them, so perhaps this concern is only short-term...

Yeah, that was my first version: https://codereview.chromium.org/1234873005/

but there were no API owners around at the time. :)

I'll rework it.

Powered by Google App Engine
This is Rietveld 408576698