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

Issue 993593002: Use SkTMin and SkTMax for clamp/pin. (Closed)

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

Description

Use SkTMin and SkTMax for clamp/pin. This changes SkScalarClampMax and SkScalarPin to use SkTMin and SkTMax. This change allows compilers to more easily transform these operations into fast max/min operarations as opposed to conditional branches. Committed: https://skia.googlesource.com/skia/+/167eb17cd6654a0ab6f7c544441a0defa88e3827

Patch Set 1 #

Total comments: 2

Patch Set 2 : State type and auto convert constant. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M include/core/SkScalar.h View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
bungeman-skia
Splitting this out of the larger CL at https://codereview.chromium.org/977623002/ .
5 years, 9 months ago (2015-03-09 15:59:33 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/993593002/1
5 years, 9 months ago (2015-03-09 16:00:02 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, 9 months ago (2015-03-09 16:00:03 UTC) #5
commit-bot: I haz the power
Presubmit check for 993593002-1 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-09 16:00:07 UTC) #7
mtklein
lgtm
5 years, 9 months ago (2015-03-09 17:06:02 UTC) #8
bungeman-skia
https://codereview.chromium.org/993593002/diff/1/include/core/SkScalar.h File include/core/SkScalar.h (right): https://codereview.chromium.org/993593002/diff/1/include/core/SkScalar.h#newcode173 include/core/SkScalar.h:173: x = SkTMax(x, SkIntToScalar(0)); Just wanted to point out ...
5 years, 9 months ago (2015-03-09 17:28:12 UTC) #9
mtklein
https://codereview.chromium.org/993593002/diff/1/include/core/SkScalar.h File include/core/SkScalar.h (right): https://codereview.chromium.org/993593002/diff/1/include/core/SkScalar.h#newcode173 include/core/SkScalar.h:173: x = SkTMax(x, SkIntToScalar(0)); On 2015/03/09 17:28:11, bungeman1 wrote: ...
5 years, 9 months ago (2015-03-09 17:34:41 UTC) #10
bungeman-skia
State the type, depend on auto conversion of constant.
5 years, 9 months ago (2015-03-09 17:57:53 UTC) #11
reed1
nice lgtm
5 years, 9 months ago (2015-03-09 20:05:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/993593002/20001
5 years, 9 months ago (2015-03-09 20:34:12 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 20:40:19 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/167eb17cd6654a0ab6f7c544441a0defa88e3827

Powered by Google App Engine
This is Rietveld 408576698