Tracking bytes used in the scratch buffer.

This commit is contained in:
Ben Vanik
2015-01-03 13:50:11 -08:00
parent 70c0c0fea1
commit 2a082ff242
2 changed files with 10 additions and 0 deletions

View File

@@ -308,8 +308,15 @@ class CommandProcessor {
GLuint point_list_geometry_program_;
GLuint rect_list_geometry_program_;
GLuint quad_list_geometry_program_;
TextureCache texture_cache_;
CircularBuffer scratch_buffer_;
struct ScratchBufferStats {
size_t total_state_data_size = 0;
size_t total_indices_size = 0;
size_t total_vertices_size = 0;
} scratch_buffer_stats_;
DrawCommand draw_command_;