|
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
Total comments: 8
|
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
|
Total messages: 14 (0 generated)
|