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

Unified Diff: webkit/renderer/compositor_bindings/web_content_layer_impl.cc

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get debug name on demand Created 7 years, 6 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: webkit/renderer/compositor_bindings/web_content_layer_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc b/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
index eb92d982b5d876100935431c346687cbf5b090a0..fa508e7058808d44f26108583ae28136a170b9c5 100644
--- a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
@@ -66,6 +66,10 @@ void WebContentLayerImpl::PaintContents(SkCanvas* canvas,
*opaque = web_opaque;
}
+std::string WebContentLayerImpl::DebugName() {
+ return UTF16ToASCII(client_->debugName());
enne (OOO) 2013/07/03 17:40:43 Why is this conversion needed?
qiankun 2013/07/04 04:34:04 It's used for converting WebKit::WebString to std:
+}
+
void WebContentLayerImpl::DidChangeLayerCanUseLCDText() {
// It is important to make this comparison because the LCD text status
// here can get out of sync with that in the layer.

Powered by Google App Engine
This is Rietveld 408576698