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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 312503006: Add trace event for addition/removal of GPU rasterization trigger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 5df8fc4ac529125338aad564e79f8ab93e7855aa..63a339893d8dc1aba4ee5b86eb3374cc75b1d8c1 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -619,6 +619,24 @@ bool LayerTreeHost::UseGpuRasterization() const {
}
}
+void LayerTreeHost::SetHasGpuRasterizationTrigger(bool has_trigger) {
+ if (has_trigger == has_gpu_rasterization_trigger_)
+ return;
+
+ has_gpu_rasterization_trigger_ = has_trigger;
+ if (has_gpu_rasterization_trigger_) {
+ TRACE_EVENT_INSTANT0(
ernstm 2014/06/02 21:34:48 Could you issue a TRACE_EVENT_INSTANT1 with name "
ajuma 2014/06/03 14:47:11 Done.
+ "cc",
+ "LayerTreeHost::SetHasGpuRasterizationTrigger trigger added",
+ TRACE_EVENT_SCOPE_THREAD);
+ } else {
+ TRACE_EVENT_INSTANT0(
+ "cc",
+ "LayerTreeHost::SetHasGpuRasterizationTrigger trigger removed",
+ TRACE_EVENT_SCOPE_THREAD);
+ }
+}
+
void LayerTreeHost::SetViewportSize(const gfx::Size& device_viewport_size) {
if (device_viewport_size == device_viewport_size_)
return;
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698