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: Address review comment 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..ef21f1b57fb9f9997cd66673d276ab0537791205 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -619,6 +619,18 @@ bool LayerTreeHost::UseGpuRasterization() const {
}
}
+void LayerTreeHost::SetHasGpuRasterizationTrigger(bool has_trigger) {
+ if (has_trigger == has_gpu_rasterization_trigger_)
+ return;
+
+ has_gpu_rasterization_trigger_ = has_trigger;
+ TRACE_EVENT_INSTANT1("cc",
+ "LayerTreeHost::SetHasGpuRasterizationTrigger",
+ TRACE_EVENT_SCOPE_THREAD,
+ "has_trigger",
+ has_gpu_rasterization_trigger_);
+}
+
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