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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698