|
In this patch we track texture state that has been modified
by a virtual context and only restore the modified texture
state during context switches.
The most CPU consuming operations on the GPU thread for
Android are virtual context switches. Previously we would
restore all texture units (there are 32 units on Nexus
7 and Nexus 10) and all applicable targets for every context
switch. With this patch we only restore GL_TEXTURE0 unit and
GL_TEXTURE_2D target most of the time.
BUG= 244701
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+233 lines, -45 lines) |
Patch |
 |
M |
gpu/command_buffer/service/context_state.h
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/context_state.cc
|
View
|
1
2
3
|
4 chunks |
+44 lines, -23 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gl_state_restorer_impl.h
|
View
|
1
2
3
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gl_state_restorer_impl.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
A |
ui/gl/dirty_texture_state.h
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gl/dirty_texture_state.cc
|
View
|
1
2
3
4
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_gl_api_implementation.h
|
View
|
1
2
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_gl_api_implementation.cc
|
View
|
1
2
3
|
4 chunks |
+28 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/gl/gl_state_restorer.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|