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

Side by Side Diff: Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 135473002: Include debug name in GraphicsLayerDebugInfo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 11 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
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class GraphicsLayerDebugInfo FINAL : public blink::WebGraphicsLayerDebugInfo { 43 class GraphicsLayerDebugInfo FINAL : public blink::WebGraphicsLayerDebugInfo {
44 public: 44 public:
45 GraphicsLayerDebugInfo(); 45 GraphicsLayerDebugInfo();
46 virtual ~GraphicsLayerDebugInfo(); 46 virtual ~GraphicsLayerDebugInfo();
47 47
48 virtual void appendAsTraceFormat(blink::WebString* out) const OVERRIDE; 48 virtual void appendAsTraceFormat(blink::WebString* out) const OVERRIDE;
49 49
50 GraphicsLayerDebugInfo* clone() const; 50 GraphicsLayerDebugInfo* clone() const;
51 51
52 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } 52 void setDebugName(const String& name) { m_debugName = name; }
53 CompositingReasons compositingReasons() const { return m_compositingReasons; } 53 CompositingReasons compositingReasons() const { return m_compositingReasons; }
54 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; } 54 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; }
55 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; }
55 56
56 private: 57 private:
57 void appendLayoutRects(JSONObject*) const; 58 void appendLayoutRects(JSONObject*) const;
58 void appendCompositingReasons(JSONObject*) const; 59 void appendCompositingReasons(JSONObject*) const;
60 void appendDebugName(JSONObject*) const;
59 61
62 String m_debugName;
60 CompositingReasons m_compositingReasons; 63 CompositingReasons m_compositingReasons;
61 Vector<LayoutRect> m_currentLayoutRects; 64 Vector<LayoutRect> m_currentLayoutRects;
62 }; 65 };
63 66
64 } // namespace WebCore 67 } // namespace WebCore
65 68
66 #endif 69 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/GraphicsLayerDebugInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698