OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/blink/blink_layer_debug_info.h" |
| 6 |
| 7 #include "third_party/WebKit/public/platform/WebGraphicsLayerDebugInfo.h" |
| 8 |
| 9 namespace cc_blink { |
| 10 |
| 11 BlinkLayerDebugInfo::BlinkLayerDebugInfo( |
| 12 blink::WebGraphicsLayerDebugInfo* debug_info) |
| 13 : debug_info_(debug_info) { |
| 14 } |
| 15 |
| 16 BlinkLayerDebugInfo::~BlinkLayerDebugInfo() { |
| 17 } |
| 18 |
| 19 void BlinkLayerDebugInfo::AppendAsTraceFormat(std::string* out) const { |
| 20 DCHECK(thread_checker_.CalledOnValidThread()); |
| 21 blink::WebString web_string; |
| 22 debug_info_->appendAsTraceFormat(&web_string); |
| 23 out->append(web_string.utf8()); |
| 24 } |
| 25 |
| 26 bool BlinkLayerDebugInfo::IncludesFirstPaintInvalidation() const { |
| 27 return debug_info_->includesFirstPaintInvalidation(); |
| 28 } |
| 29 |
| 30 } // namespace cc_blink |
OLD | NEW |