Chromium Code Reviews| Index: content/browser/gpu/gpu_internals_ui.cc |
| diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc |
| index c32b27e11238ad882401a88cc8d2a3599dc1f7bc..5044d2ad2a2874955b1be998a64551c1c61e0424 100644 |
| --- a/content/browser/gpu/gpu_internals_ui.cc |
| +++ b/content/browser/gpu/gpu_internals_ui.cc |
| @@ -308,6 +308,26 @@ base::DictionaryValue* GpuMemoryBufferInfoAsDictionaryValue() { |
| BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager = |
| BrowserGpuMemoryBufferManager::current(); |
| + // Add texture uploads mode. |
|
reveman
2016/01/29 15:43:50
I'd prefer to call it "Tile Initialization Mode" a
dshwang
2016/01/29 16:46:14
I feel a bit weird to "Initialization". one-copy a
reveman
2016/01/29 19:35:36
Sgtm
|
| + std::string texture_uploads_mode; |
| + if (BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBuffersEnabled()) { |
|
reveman
2016/01/29 15:43:50
This is going to be confusing as native being enab
dshwang
2016/01/29 16:46:14
It's true. If native is enabled but GMB info don't
reveman
2016/01/29 19:35:36
These stats are more to help developers than users
|
| + texture_uploads_mode = "Native, "; |
| + } else { |
| + texture_uploads_mode = "Software, "; |
| + } |
| + if (IsZeroCopyUploadEnabled()) { |
| + texture_uploads_mode += "Zero-copy "; |
| + } else { |
| + if (IsPartialRasterEnabled()) { |
| + texture_uploads_mode += "Partial "; |
| + } |
| + texture_uploads_mode += "One-copy "; |
| + } |
|
reveman
2016/01/29 15:43:50
Can all this be two flags instead? 1. if zero-copy
dshwang
2016/01/29 16:46:14
currently chrome don't use partial raster even if
|
| + texture_uploads_mode += "texture uploads"; |
| + gpu_memory_buffer_info->Append(NewDescriptionValuePair( |
|
reveman
2016/01/29 15:43:50
I don't think this belongs in gpu_memory_buffer_in
dshwang
2016/01/29 16:46:14
Ok, let me create new section: "Compositor Informa
|
| + "Texture Uploads Mode", |
| + texture_uploads_mode)); |
| + |
| for (size_t format = 0; |
| format < static_cast<size_t>(gfx::BufferFormat::LAST) + 1; format++) { |
| std::string native_usage_support; |