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

Issue 633773002: Optimized Texture::Update() function. (Closed)

Created:
6 years, 2 months ago by David Yen
Modified:
6 years, 2 months ago
Reviewers:
Zhenyao Mo, vmiura
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Optimized Texture::Update() function. Texture::Update() was doing a lot of calculations that did not change much per frame. Some of the calculations such as whether or not has non-power of 2 dimensions has been moved to when the texture levels are set since they do not change. Others are only recalculated when a dirty bit is set. BUG=420152 TEST=trybots Committed: https://crrev.com/ecc73c25adfe05e947c2e4aa1f814cfcf19b75ba Cr-Commit-Position: refs/heads/master@{#299181}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Recalculate texture/cube complete on dirty flag, added face structure #

Total comments: 4

Patch Set 3 : Fixed issue with caching level0 and mip results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -125 lines) Patch
M gpu/command_buffer/service/texture_definition.cc View 1 2 chunks +10 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 5 chunks +43 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 19 chunks +210 lines, -115 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
David Yen
I've updated the Texture::Update() value to use precalculate values that are lazily computed as the ...
6 years, 2 months ago (2014-10-06 23:12:57 UTC) #2
vmiura
In general I think the counting of states is a bit error prone, and I ...
6 years, 2 months ago (2014-10-07 00:13:04 UTC) #3
David Yen
I reverted to the old Texture::Update() function and modified it to use my new complete ...
6 years, 2 months ago (2014-10-09 20:20:17 UTC) #4
David Yen
On 2014/10/09 20:20:17, David Yen wrote: > I reverted to the old Texture::Update() function and ...
6 years, 2 months ago (2014-10-10 17:01:19 UTC) #5
vmiura
> After getting the profiler working again, it looks like this change reduces the > ...
6 years, 2 months ago (2014-10-10 17:14:18 UTC) #6
vmiura
https://codereview.chromium.org/633773002/diff/20001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/633773002/diff/20001/gpu/command_buffer/service/texture_manager.cc#newcode840 gpu/command_buffer/service/texture_manager.cc:840: cube_complete_ = false; I think you need to save ...
6 years, 2 months ago (2014-10-10 17:40:37 UTC) #7
David Yen
https://codereview.chromium.org/633773002/diff/20001/gpu/command_buffer/service/texture_manager.cc File gpu/command_buffer/service/texture_manager.cc (right): https://codereview.chromium.org/633773002/diff/20001/gpu/command_buffer/service/texture_manager.cc#newcode840 gpu/command_buffer/service/texture_manager.cc:840: cube_complete_ = false; On 2014/10/10 17:40:37, vmiura wrote: > ...
6 years, 2 months ago (2014-10-10 17:51:00 UTC) #8
vmiura
lgtm, but please wait for Mo's check too. Thanks!
6 years, 2 months ago (2014-10-10 18:04:30 UTC) #9
Zhenyao Mo
LGTM Please also update CL description to reflect the new change.
6 years, 2 months ago (2014-10-10 19:38:54 UTC) #10
David Yen
On 2014/10/10 19:38:54, Zhenyao Mo wrote: > LGTM > > Please also update CL description ...
6 years, 2 months ago (2014-10-10 19:45:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/633773002/200001
6 years, 2 months ago (2014-10-10 19:47:07 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:200001)
6 years, 2 months ago (2014-10-10 20:44:10 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 20:44:47 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ecc73c25adfe05e947c2e4aa1f814cfcf19b75ba
Cr-Commit-Position: refs/heads/master@{#299181}

Powered by Google App Engine
This is Rietveld 408576698