OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 DISALLOW_NEW(); | 51 DISALLOW_NEW(); |
52 WTF_MAKE_NONCOPYABLE(GraphicsLayerDebugInfo); | 52 WTF_MAKE_NONCOPYABLE(GraphicsLayerDebugInfo); |
53 public: | 53 public: |
54 GraphicsLayerDebugInfo(); | 54 GraphicsLayerDebugInfo(); |
55 ~GraphicsLayerDebugInfo(); | 55 ~GraphicsLayerDebugInfo(); |
56 | 56 |
57 scoped_refptr<base::trace_event::TracedValue> asTracedValue() const; | 57 scoped_refptr<base::trace_event::TracedValue> asTracedValue() const; |
58 | 58 |
59 CompositingReasons compositingReasons() const { return m_compositingReasons;
} | 59 CompositingReasons compositingReasons() const { return m_compositingReasons;
} |
60 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } | 60 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } |
61 void setOwnerNodeId(int id) { m_ownerNodeId = id; } | |
62 | 61 |
63 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); | 62 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); |
64 void clearAnnotatedInvalidateRects(); | 63 void clearAnnotatedInvalidateRects(); |
65 | 64 |
66 private: | 65 private: |
67 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const; | 66 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const; |
68 void appendCompositingReasons(base::trace_event::TracedValue*) const; | 67 void appendCompositingReasons(base::trace_event::TracedValue*) const; |
69 void appendOwnerNodeId(base::trace_event::TracedValue*) const; | |
70 | 68 |
71 struct AnnotatedInvalidationRect { | 69 struct AnnotatedInvalidationRect { |
72 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 70 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
73 FloatRect rect; | 71 FloatRect rect; |
74 PaintInvalidationReason reason; | 72 PaintInvalidationReason reason; |
75 }; | 73 }; |
76 | 74 |
77 CompositingReasons m_compositingReasons; | 75 CompositingReasons m_compositingReasons; |
78 int m_ownerNodeId; | |
79 Vector<AnnotatedInvalidationRect> m_invalidations; | 76 Vector<AnnotatedInvalidationRect> m_invalidations; |
80 Vector<AnnotatedInvalidationRect> m_previousInvalidations; | 77 Vector<AnnotatedInvalidationRect> m_previousInvalidations; |
81 }; | 78 }; |
82 | 79 |
83 } // namespace blink | 80 } // namespace blink |
84 | 81 |
85 #endif | 82 #endif |
OLD | NEW |