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

Issue 318873002: Remove GrIsPow2 in favor of SkIsPow2. (Closed)

Created:
6 years, 6 months ago by tfarina
Modified:
6 years, 6 months ago
Reviewers:
scroggo, bsalomon
CC:
skia-review_googlegroups.com, robertphillips
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Remove GrIsPow2 in favor of SkIsPow2. Looks like there is no good reason to have two copies of this function doing the same thing with different name. BUG=None TEST=make tests R=bsalomon@google.com Committed: https://skia.googlesource.com/skia/+/f9dae780c2c46a1f08adbbe8de2faaba091254d4

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -14 lines) Patch
M include/gpu/GrColor.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrTexture.h View 1 chunk +2 lines, -2 lines 0 comments Download
M include/gpu/GrTypes.h View 1 chunk +0 lines, -7 lines 1 comment Download
M src/gpu/GrContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpu.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
tfarina
Is this OK? (please, do not cq box). Thanks,
6 years, 6 months ago (2014-06-05 03:48:33 UTC) #1
bsalomon
It looks good, but how do you plan to commit this?
6 years, 6 months ago (2014-06-05 13:30:47 UTC) #2
mtklein
On 2014/06/05 13:30:47, bsalomon wrote: > It looks good, but how do you plan to ...
6 years, 6 months ago (2014-06-05 13:32:16 UTC) #3
tfarina
On 2014/06/05 13:32:16, mtklein wrote: > On 2014/06/05 13:30:47, bsalomon wrote: > > It looks ...
6 years, 6 months ago (2014-06-05 14:30:21 UTC) #4
mtklein
On 2014/06/05 14:30:21, tfarina wrote: > On 2014/06/05 13:32:16, mtklein wrote: > > On 2014/06/05 ...
6 years, 6 months ago (2014-06-05 14:33:26 UTC) #5
tfarina
Reopening. Brian, I had a long discussion with Robert Iannucci today about the committer vs ...
6 years, 6 months ago (2014-06-06 02:07:15 UTC) #6
mtklein
On 2014/06/06 02:07:15, tfarina wrote: > Reopening. > > Brian, I had a long discussion ...
6 years, 6 months ago (2014-06-06 02:33:42 UTC) #7
bsalomon
lgtm Glad to hear it, Thiago. Authorship matters a lot more than "comittership".
6 years, 6 months ago (2014-06-06 12:56:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tfarina@chromium.org/318873002/1
6 years, 6 months ago (2014-06-06 12:56:56 UTC) #9
commit-bot: I haz the power
Change committed as f9dae780c2c46a1f08adbbe8de2faaba091254d4
6 years, 6 months ago (2014-06-06 13:35:32 UTC) #10
scroggo
https://codereview.chromium.org/318873002/diff/1/include/gpu/GrTypes.h File include/gpu/GrTypes.h (left): https://codereview.chromium.org/318873002/diff/1/include/gpu/GrTypes.h#oldcode157 include/gpu/GrTypes.h:157: return n && 0 == (n & (n - ...
6 years, 6 months ago (2014-06-09 14:40:56 UTC) #11
bsalomon
6 years, 6 months ago (2014-06-09 14:54:52 UTC) #12
Message was sent while issue was closed.
On 2014/06/09 14:40:56, scroggo wrote:
> https://codereview.chromium.org/318873002/diff/1/include/gpu/GrTypes.h
> File include/gpu/GrTypes.h (left):
> 
>
https://codereview.chromium.org/318873002/diff/1/include/gpu/GrTypes.h#oldcod...
> include/gpu/GrTypes.h:157: return n && 0 == (n & (n - 1));
> Not sure whether it makes a difference to any of the callers, but this does
> slightly change the behavior: GrIsPow2 returns false for 0, but SkIsPow2
returns
> true.

Yes, I checked that. They should all be fine.

Powered by Google App Engine
This is Rietveld 408576698