| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 CompositingReasons getCompositingReasons() const { return m_compositingReaso
ns; } | 61 CompositingReasons getCompositingReasons() const { return m_compositingReaso
ns; } |
| 62 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } | 62 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } |
| 63 | 63 |
| 64 SquashingDisallowedReasons getSquashingDisallowedReasons() const { return m_
squashingDisallowedReasons; } | 64 SquashingDisallowedReasons getSquashingDisallowedReasons() const { return m_
squashingDisallowedReasons; } |
| 65 void setSquashingDisallowedReasons(SquashingDisallowedReasons reasons) { m_s
quashingDisallowedReasons = reasons; } | 65 void setSquashingDisallowedReasons(SquashingDisallowedReasons reasons) { m_s
quashingDisallowedReasons = reasons; } |
| 66 void setOwnerNodeId(int id) { m_ownerNodeId = id; } | 66 void setOwnerNodeId(int id) { m_ownerNodeId = id; } |
| 67 | 67 |
| 68 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); | 68 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); |
| 69 void clearAnnotatedInvalidateRects(); | 69 void clearAnnotatedInvalidateRects(); |
| 70 | 70 |
| 71 uint32_t getMainThreadScrollingReasons() const { return m_mainThreadScrollin
gReasons; } |
| 72 void setMainThreadScrollingReasons(uint32_t reasons) { m_mainThreadScrolling
Reasons = reasons; } |
| 73 |
| 71 private: | 74 private: |
| 72 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const; | 75 void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const; |
| 73 void appendCompositingReasons(base::trace_event::TracedValue*) const; | 76 void appendCompositingReasons(base::trace_event::TracedValue*) const; |
| 74 void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const
; | 77 void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const
; |
| 75 void appendOwnerNodeId(base::trace_event::TracedValue*) const; | 78 void appendOwnerNodeId(base::trace_event::TracedValue*) const; |
| 79 void appendMainThreadScrollingReasons(base::trace_event::TracedValue*) const
; |
| 76 | 80 |
| 77 struct AnnotatedInvalidationRect { | 81 struct AnnotatedInvalidationRect { |
| 78 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 82 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 79 FloatRect rect; | 83 FloatRect rect; |
| 80 PaintInvalidationReason reason; | 84 PaintInvalidationReason reason; |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 CompositingReasons m_compositingReasons; | 87 CompositingReasons m_compositingReasons; |
| 84 SquashingDisallowedReasons m_squashingDisallowedReasons; | 88 SquashingDisallowedReasons m_squashingDisallowedReasons; |
| 85 int m_ownerNodeId; | 89 int m_ownerNodeId; |
| 86 Vector<AnnotatedInvalidationRect> m_invalidations; | 90 Vector<AnnotatedInvalidationRect> m_invalidations; |
| 87 Vector<AnnotatedInvalidationRect> m_previousInvalidations; | 91 Vector<AnnotatedInvalidationRect> m_previousInvalidations; |
| 92 uint32_t m_mainThreadScrollingReasons; |
| 88 }; | 93 }; |
| 89 | 94 |
| 90 } // namespace blink | 95 } // namespace blink |
| 91 | 96 |
| 92 #endif | 97 #endif |
| OLD | NEW |