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

Side by Side Diff: cc/blink/blink_layer_debug_info.h

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compilefix 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
« no previous file with comments | « cc/blink/BUILD.gn ('k') | cc/blink/blink_layer_debug_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_
6 #define CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread_checker.h"
13 #include "cc/debug/layer_debug_info.h"
14
15 namespace cc {
16 struct DebugRect;
17 }
18
19 namespace blink {
20 class WebGraphicsLayerDebugInfo;
21 }
22
23 namespace cc_blink {
24
25 class BlinkLayerDebugInfo : public cc::LayerDebugInfo {
26 public:
27 // This object takes ownership of the debug_info object.
28 explicit BlinkLayerDebugInfo(blink::WebGraphicsLayerDebugInfo* debug_info);
29
30 virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE;
31 virtual std::vector<cc::DebugRect> GetInvalidationRects(
32 cc::Layer*) const OVERRIDE;
33
34 private:
35 virtual ~BlinkLayerDebugInfo();
36
37 scoped_ptr<blink::WebGraphicsLayerDebugInfo> debug_info_;
38 base::ThreadChecker thread_checker_;
39 };
40
41 } // namespace cc_blink
42
43 #endif // CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_
OLDNEW
« no previous file with comments | « cc/blink/BUILD.gn ('k') | cc/blink/blink_layer_debug_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698