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

Issue 2061103002: cc: Move computing borderless max texture size to function. (Closed)

Created:
4 years, 6 months ago by prashant.n
Modified:
4 years, 4 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move computing borderless max texture size to function. This patch moves computing borderless max texture size to its own function and calls it when tiling gets updated, i.e. when RecomputeNumTiles() gets called. This will save computing max texture size without border each time in few frequently called functions and makes code more readable. BUG=None CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Total comments: 4

Patch Set 2 : feedback #

Total comments: 2

Patch Set 3 : fixed build break. #

Messages

Total messages: 28 (10 generated)
prashant.n
ptal.
4 years, 6 months ago (2016-06-14 04:59:41 UTC) #3
vmpstr
On 2016/06/14 04:59:41, prashant.n wrote: > ptal. This looks fine. Do you have any perf ...
4 years, 6 months ago (2016-06-14 22:40:18 UTC) #4
vmpstr
https://codereview.chromium.org/2061103002/diff/1/cc/base/tiling_data.cc File cc/base/tiling_data.cc (right): https://codereview.chromium.org/2061103002/diff/1/cc/base/tiling_data.cc#newcode25 cc/base/tiling_data.cc:25: int ComputeBorderlessTextureSize(int max_texture_size, int border_texels) { I don't think ...
4 years, 6 months ago (2016-06-14 22:40:54 UTC) #5
prashant.n
https://codereview.chromium.org/2061103002/diff/1/cc/base/tiling_data.cc File cc/base/tiling_data.cc (right): https://codereview.chromium.org/2061103002/diff/1/cc/base/tiling_data.cc#newcode25 cc/base/tiling_data.cc:25: int ComputeBorderlessTextureSize(int max_texture_size, int border_texels) { On 2016/06/14 22:40:54, ...
4 years, 6 months ago (2016-06-15 00:37:05 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061103002/20001
4 years, 6 months ago (2016-06-15 10:07:46 UTC) #8
prashant.n
https://codereview.chromium.org/2061103002/diff/20001/cc/base/tiling_data.cc File cc/base/tiling_data.cc (right): https://codereview.chromium.org/2061103002/diff/20001/cc/base/tiling_data.cc#newcode292 cc/base/tiling_data.cc:292: DCHECK_GT(borderless_max_texture_size_.width(), 0); Should we have CHECK_GT here instead, as ...
4 years, 6 months ago (2016-06-15 10:09:18 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/228702)
4 years, 6 months ago (2016-06-15 10:36:20 UTC) #11
prashant.n
Looks few tests are broken. 'll take care tomorrow.
4 years, 6 months ago (2016-06-15 16:34:35 UTC) #12
vmpstr
https://codereview.chromium.org/2061103002/diff/20001/cc/base/tiling_data.cc File cc/base/tiling_data.cc (right): https://codereview.chromium.org/2061103002/diff/20001/cc/base/tiling_data.cc#newcode292 cc/base/tiling_data.cc:292: DCHECK_GT(borderless_max_texture_size_.width(), 0); On 2016/06/15 10:09:18, prashant.n wrote: > Should ...
4 years, 6 months ago (2016-06-15 20:37:53 UTC) #13
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-15 10:37:01 UTC) #16
prashant.n
ptal
4 years, 5 months ago (2016-07-15 13:17:24 UTC) #19
prashant.n
+ enne
4 years, 5 months ago (2016-07-18 04:43:25 UTC) #21
enne (OOO)
On 2016/06/14 at 22:40:18, vmpstr wrote: > On 2016/06/14 04:59:41, prashant.n wrote: > > ptal. ...
4 years, 5 months ago (2016-07-18 18:00:18 UTC) #22
prashant.n
On 2016/07/18 18:00:18, enne wrote: > On 2016/06/14 at 22:40:18, vmpstr wrote: > > On ...
4 years, 5 months ago (2016-07-19 00:53:04 UTC) #23
prashant.n
Read above comment as - This will not improve the perf *much*, but will make ...
4 years, 5 months ago (2016-07-19 02:54:33 UTC) #24
prashant.n
The commit msg updated to depict the intent of the patch.
4 years, 5 months ago (2016-07-19 03:15:22 UTC) #26
enne (OOO)
Sorry to quibble, but I don't know that this makes things more readable, at least ...
4 years, 5 months ago (2016-07-19 18:46:05 UTC) #27
prashant.n
4 years, 5 months ago (2016-07-20 03:36:46 UTC) #28
On 2016/07/19 18:46:05, enne wrote:
> Sorry to quibble, but I don't know that this makes things more readable, at
> least to my eyes.  For example, the TileSizeX/Y functions seemed easier to
> understand when two cases were 1 or 2 border texels explicitly, and
> FirstBorderTileXIndexFromSrcCoord now obscures some of the math via a member
> variable.

Hmm. "1 or 2 border texels explicitly" seems reasonable. I would skip this
patch.

Powered by Google App Engine
This is Rietveld 408576698