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

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

Issue 2819933003: Report swap chain format histogram on every swap. (Closed)
Patch Set: 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 | no next file » | 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 0f4e40e52bfa40b30f1e87e2695009db89204749..a546609b7d32cbdfe44fda8c3a6549b099d8da0f 100644
--- a/gpu/ipc/service/direct_composition_surface_win.cc
+++ b/gpu/ipc/service/direct_composition_surface_win.cc
@@ -496,6 +496,8 @@ void DCLayerTree::SwapChainPresenter::PresentToSwapChain(
swap_chain_->Present(1, 0);
+ UMA_HISTOGRAM_BOOLEAN("GPU.DirectComposition.SwapchainFormat",
+ is_yuy2_swapchain_);
frames_since_color_space_change_++;
base::win::ScopedComPtr<IDXGISwapChainMedia> swap_chain_media;
@@ -591,8 +593,6 @@ void DCLayerTree::SwapChainPresenter::ReallocateSwapChain(bool yuy2) {
swap_chain_.Receive());
CHECK(SUCCEEDED(hr));
}
- UMA_HISTOGRAM_BOOLEAN("GPU.DirectComposition.SwapchainFormat",
- is_yuy2_swapchain_);
out_view_.Reset();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698