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

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

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review 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
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 28 matching lines...) Expand all
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class GraphicsLayerDebugInfo FINAL : public WebGraphicsLayerDebugInfo { 43 class GraphicsLayerDebugInfo FINAL : public WebGraphicsLayerDebugInfo {
44 public: 44 public:
45 GraphicsLayerDebugInfo(); 45 GraphicsLayerDebugInfo();
46 virtual ~GraphicsLayerDebugInfo(); 46 virtual ~GraphicsLayerDebugInfo();
47 47
48 virtual void appendAsTraceFormat(WebString* out) const OVERRIDE; 48 virtual void appendAsTraceFormat(WebString* out) const OVERRIDE;
49 virtual bool includesFirstPaintInvalidation() const OVERRIDE;
49 50
50 GraphicsLayerDebugInfo* clone() const; 51 GraphicsLayerDebugInfo* clone() const;
51 52
52 void setDebugName(const String& name) { m_debugName = name; } 53 void setDebugName(const String& name) { m_debugName = name; }
53 CompositingReasons compositingReasons() const { return m_compositingReasons; } 54 CompositingReasons compositingReasons() const { return m_compositingReasons; }
54 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; } 55 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason s = reasons; }
55 void setOwnerNodeId(int id) { m_ownerNodeId = id; } 56 void setOwnerNodeId(int id) { m_ownerNodeId = id; }
56 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } 57 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; }
58 void setIncludesFirstPaintInvalidation(bool b) { m_includesFirstPaintInvalid ation = b; }
57 59
58 private: 60 private:
59 void appendLayoutRects(JSONObject*) const; 61 void appendLayoutRects(JSONObject*) const;
60 void appendCompositingReasons(JSONObject*) const; 62 void appendCompositingReasons(JSONObject*) const;
61 void appendDebugName(JSONObject*) const; 63 void appendDebugName(JSONObject*) const;
62 void appendOwnerNodeId(JSONObject*) const; 64 void appendOwnerNodeId(JSONObject*) const;
63 65
64 String m_debugName; 66 String m_debugName;
65 CompositingReasons m_compositingReasons; 67 CompositingReasons m_compositingReasons;
66 int m_ownerNodeId; 68 int m_ownerNodeId;
67 Vector<LayoutRect> m_currentLayoutRects; 69 Vector<LayoutRect> m_currentLayoutRects;
70 bool m_includesFirstPaintInvalidation;
68 }; 71 };
69 72
70 } // namespace blink 73 } // namespace blink
71 74
72 #endif 75 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698