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

Issue 224763002: Remove default textures in (!bind_generates_resource) context groups. (Closed)

Created:
6 years, 8 months ago by vmiura
Modified:
6 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Remove default textures in (!bind_generates_resource) context groups. Previously texture ids for default textures in Renderer compositor and Browser compositor contexts are different, so during a context switch we'd be restoring default textures for all units which can be slow. This change makes all default textures 'null' for context groups with bind_generates_resource == false. Since Renderer and Browser compositors will both have 'null' default textures, state switching will be avoided. BUG=333063, 353822 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262288

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed nits. Couple of new unit tests in texture_manager_unittest.cc. #

Patch Set 3 : Use kBindGeneratesResource in context_group_unittest.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+658 lines, -159 lines) Patch
M gpu/command_buffer/service/context_group.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/context_group_unittest.cc View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 3 chunks +15 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 2 chunks +20 lines, -16 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 6 chunks +362 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 3 chunks +24 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/test_helper.h View 3 chunks +14 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/test_helper.cc View 8 chunks +36 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 4 chunks +51 lines, -46 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 17 chunks +122 lines, -41 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vmiura
PTAL.
6 years, 8 months ago (2014-04-03 23:12:28 UTC) #1
Ken Russell (switch to Gerrit)
Sorry, I'm completely swamped and won't be able to review this. I fully trust sievers@ ...
6 years, 8 months ago (2014-04-04 01:09:40 UTC) #2
piman
Mostly nits. https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group.cc File gpu/command_buffer/service/context_group.cc (right): https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group.cc#newcode183 gpu/command_buffer/service/context_group.cc:183: texture_manager_->set_use_default_textures(bind_generates_resource_); Could we pass this to the ...
6 years, 8 months ago (2014-04-04 02:50:28 UTC) #3
vmiura
PTAL https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group.cc File gpu/command_buffer/service/context_group.cc (right): https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group.cc#newcode183 gpu/command_buffer/service/context_group.cc:183: texture_manager_->set_use_default_textures(bind_generates_resource_); On 2014/04/04 02:50:28, piman wrote: > Could ...
6 years, 8 months ago (2014-04-04 18:32:56 UTC) #4
piman
lgtm https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group_unittest.cc File gpu/command_buffer/service/context_group_unittest.cc (right): https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group_unittest.cc#newcode52 gpu/command_buffer/service/context_group_unittest.cc:52: bool bind_generates_resource_; On 2014/04/04 18:32:57, vmiura wrote: > ...
6 years, 8 months ago (2014-04-04 22:47:44 UTC) #5
vmiura
https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group_unittest.cc File gpu/command_buffer/service/context_group_unittest.cc (right): https://codereview.chromium.org/224763002/diff/1/gpu/command_buffer/service/context_group_unittest.cc#newcode52 gpu/command_buffer/service/context_group_unittest.cc:52: bool bind_generates_resource_; On 2014/04/04 22:47:44, piman wrote: > On ...
6 years, 8 months ago (2014-04-05 01:54:29 UTC) #6
piman
lgtm3
6 years, 8 months ago (2014-04-05 05:16:59 UTC) #7
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 8 months ago (2014-04-07 17:26:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/224763002/40001
6 years, 8 months ago (2014-04-07 17:26:04 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-07 23:28:28 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=294408
6 years, 8 months ago (2014-04-07 23:28:28 UTC) #11
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 8 months ago (2014-04-07 23:43:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/224763002/40001
6 years, 8 months ago (2014-04-07 23:43:47 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 03:52:00 UTC) #14
Message was sent while issue was closed.
Change committed as 262288

Powered by Google App Engine
This is Rietveld 408576698