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

Unified Diff: cc/blink/blink_layer_debug_info.cc

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update only when needed Created 6 years, 4 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
Index: cc/blink/blink_layer_debug_info.cc
diff --git a/cc/blink/blink_layer_debug_info.cc b/cc/blink/blink_layer_debug_info.cc
new file mode 100644
index 0000000000000000000000000000000000000000..02c937a8f02e6dd8badd1771dc926e96b5b54a3a
--- /dev/null
+++ b/cc/blink/blink_layer_debug_info.cc
@@ -0,0 +1,30 @@
+// 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 "cc/blink/blink_layer_debug_info.h"
+
+#include "third_party/WebKit/public/platform/WebGraphicsLayerDebugInfo.h"
+
+namespace cc_blink {
+
+BlinkLayerDebugInfo::BlinkLayerDebugInfo(
+ blink::WebGraphicsLayerDebugInfo* debug_info)
+ : debug_info_(debug_info) {
+}
+
+BlinkLayerDebugInfo::~BlinkLayerDebugInfo() {
+}
+
+void BlinkLayerDebugInfo::AppendAsTraceFormat(std::string* out) const {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ blink::WebString web_string;
+ debug_info_->appendAsTraceFormat(&web_string);
+ out->append(web_string.utf8());
+}
+
+bool BlinkLayerDebugInfo::IncludesFirstPaintInvalidation() const {
+ return debug_info_->includesFirstPaintInvalidation();
+}
+
+} // namespace cc_blink

Powered by Google App Engine
This is Rietveld 408576698