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

Unified Diff: content/browser/gpu/gpu_internals_ui.cc

Issue 1637423004: Show Compositor information in chrome://gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move "GpuMemoryBuffer Status" section to below Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698