| 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/graphics/PaintInvalidationReason.h" | 37 #include "platform/graphics/PaintInvalidationReason.h" |
| 38 #include "public/platform/WebGraphicsLayerDebugInfo.h" | 38 #include "public/platform/WebGraphicsLayerDebugInfo.h" |
| 39 | 39 |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class GraphicsLayerDebugInfo final : public WebGraphicsLayerDebugInfo { | 44 class GraphicsLayerDebugInfo final : public WebGraphicsLayerDebugInfo { |
| 45 public: | 45 public: |
| 46 GraphicsLayerDebugInfo(); | 46 GraphicsLayerDebugInfo(); |
| 47 virtual ~GraphicsLayerDebugInfo(); | 47 ~GraphicsLayerDebugInfo() override; |
| 48 | 48 |
| 49 virtual void appendAsTraceFormat(WebString* out) const override; | 49 void appendAsTraceFormat(WebString* out) const override; |
| 50 | 50 |
| 51 GraphicsLayerDebugInfo* clone() const; | 51 GraphicsLayerDebugInfo* clone() const; |
| 52 | 52 |
| 53 void setDebugName(const String& name) { m_debugName = name; } | 53 void setDebugName(const String& name) { m_debugName = name; } |
| 54 CompositingReasons compositingReasons() const { return m_compositingReasons;
} | 54 CompositingReasons compositingReasons() const { return m_compositingReasons;
} |
| 55 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } | 55 void setCompositingReasons(CompositingReasons reasons) { m_compositingReason
s = reasons; } |
| 56 void setOwnerNodeId(int id) { m_ownerNodeId = id; } | 56 void setOwnerNodeId(int id) { m_ownerNodeId = id; } |
| 57 | 57 |
| 58 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); | 58 void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason
); |
| 59 void clearAnnotatedInvalidateRects(); | 59 void clearAnnotatedInvalidateRects(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 String m_debugName; | 72 String m_debugName; |
| 73 CompositingReasons m_compositingReasons; | 73 CompositingReasons m_compositingReasons; |
| 74 int m_ownerNodeId; | 74 int m_ownerNodeId; |
| 75 Vector<AnnotatedInvalidationRect> m_invalidations; | 75 Vector<AnnotatedInvalidationRect> m_invalidations; |
| 76 Vector<AnnotatedInvalidationRect> m_previousInvalidations; | 76 Vector<AnnotatedInvalidationRect> m_previousInvalidations; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |