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

Unified Diff: gpu/ipc/service/direct_composition_surface_win.cc

Issue 2799183002: Add UMA histogram about what format of swapchain is created for overlays (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/direct_composition_surface_win.cc
diff --git a/gpu/ipc/service/direct_composition_surface_win.cc b/gpu/ipc/service/direct_composition_surface_win.cc
index b794e77143cd68a378bed6a5c515aa1c25e39437..c54a894a9cc36975afdfd48aae14c6dbeaa0e28e 100644
--- a/gpu/ipc/service/direct_composition_surface_win.cc
+++ b/gpu/ipc/service/direct_composition_surface_win.cc
@@ -432,6 +432,8 @@ void DCLayerTree::SwapChainPresenter::ReallocateSwapChain() {
d3d11_device_.get(), swap_chain_handle_.Get(), &desc, nullptr,
swap_chain_.Receive());
+ bool yuy2_swapchain = true;
+
if (FAILED(hr)) {
// This should not be hit in production but is a simple fallback for
// testing on systems without YUY2 swapchain support.
@@ -443,6 +445,7 @@ void DCLayerTree::SwapChainPresenter::ReallocateSwapChain() {
d3d11_device_.get(), swap_chain_handle_.Get(), &desc, nullptr,
swap_chain_.Receive());
CHECK(SUCCEEDED(hr));
+ yuy2_swapchain = false;
} else {
// This is a sensible default colorspace for most videos.
// TODO(jbauman): Use correct colorspace.
@@ -452,6 +455,8 @@ void DCLayerTree::SwapChainPresenter::ReallocateSwapChain() {
DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709);
CHECK(SUCCEEDED(hr));
}
+ UMA_HISTOGRAM_BOOLEAN("GPU.DirectComposition.SwapchainFormat",
+ yuy2_swapchain);
out_view_.Reset();
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698