| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "platform/JSONValues.h" | 34 #include "platform/JSONValues.h" |
| 35 #include "platform/geometry/LayoutRect.h" | 35 #include "platform/geometry/LayoutRect.h" |
| 36 #include "platform/graphics/CompositingReasons.h" | 36 #include "platform/graphics/CompositingReasons.h" |
| 37 #include "public/platform/WebGraphicsLayerDebugInfo.h" | 37 #include "public/platform/WebGraphicsLayerDebugInfo.h" |
| 38 | 38 |
| 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 blink::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(blink::WebString* out) const OVERRIDE; | 48 virtual void appendAsTraceFormat(WebString* out) const OVERRIDE; |
| 49 | 49 |
| 50 GraphicsLayerDebugInfo* clone() const; | 50 GraphicsLayerDebugInfo* clone() const; |
| 51 | 51 |
| 52 void setDebugName(const String& name) { m_debugName = name; } | 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 void setOwnerNodeId(int id) { m_ownerNodeId = id; } | 55 void setOwnerNodeId(int id) { m_ownerNodeId = id; } |
| 56 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } | 56 Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 void appendLayoutRects(JSONObject*) const; | 59 void appendLayoutRects(JSONObject*) const; |
| 60 void appendCompositingReasons(JSONObject*) const; | 60 void appendCompositingReasons(JSONObject*) const; |
| 61 void appendDebugName(JSONObject*) const; | 61 void appendDebugName(JSONObject*) const; |
| 62 void appendOwnerNodeId(JSONObject*) const; | 62 void appendOwnerNodeId(JSONObject*) const; |
| 63 | 63 |
| 64 String m_debugName; | 64 String m_debugName; |
| 65 CompositingReasons m_compositingReasons; | 65 CompositingReasons m_compositingReasons; |
| 66 int m_ownerNodeId; | 66 int m_ownerNodeId; |
| 67 Vector<LayoutRect> m_currentLayoutRects; | 67 Vector<LayoutRect> m_currentLayoutRects; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif | 72 #endif |
| OLD | NEW |