| 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
|
|
|