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

Unified Diff: Source/platform/graphics/FirstPaintInvalidationTracking.cpp

Issue 498193003: Add |GraphicsLayerDebugInfo::getAnnotatedInvalidationRects| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tkent-san review Created 6 years, 3 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 | « Source/platform/graphics/FirstPaintInvalidationTracking.h ('k') | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/FirstPaintInvalidationTracking.cpp
diff --git a/Source/platform/graphics/FirstPaintInvalidationTracking.cpp b/Source/platform/graphics/FirstPaintInvalidationTracking.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..1646d4323fb37a2d118cb2f07ff5e84cff665fad
--- /dev/null
+++ b/Source/platform/graphics/FirstPaintInvalidationTracking.cpp
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "platform/graphics/FirstPaintInvalidationTracking.h"
+
+#include "platform/TraceEvent.h"
+
+namespace blink {
+
+static bool showPaintRectsEnabled = false;
+
+bool firstPaintInvalidationTrackingEnabled()
+{
+ if (showPaintRectsEnabled)
+ return true;
+
+ bool isTracingEnabled;
+ TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), &isTracingEnabled);
+ return isTracingEnabled;
+}
+
+void setFirstPaintInvalidationTrackingEnabledForShowPaintRects(bool b)
+{
+ showPaintRectsEnabled = b;
+}
+
+}
« no previous file with comments | « Source/platform/graphics/FirstPaintInvalidationTracking.h ('k') | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698