| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "core/platform/graphics/PlatformLayer.h" | 36 #include "core/platform/graphics/PlatformLayer.h" |
| 37 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate
.h" | 37 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate
.h" |
| 38 #include "core/platform/graphics/filters/FilterOperations.h" | 38 #include "core/platform/graphics/filters/FilterOperations.h" |
| 39 #include "core/platform/graphics/transforms/TransformOperations.h" | 39 #include "core/platform/graphics/transforms/TransformOperations.h" |
| 40 #include "core/platform/graphics/transforms/TransformationMatrix.h" | 40 #include "core/platform/graphics/transforms/TransformationMatrix.h" |
| 41 | 41 |
| 42 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
| 43 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
| 44 #include "wtf/PassOwnPtr.h" | 44 #include "wtf/PassOwnPtr.h" |
| 45 | 45 |
| 46 #include <public/WebCompositingReasons.h> |
| 46 #include <public/WebContentLayer.h> | 47 #include <public/WebContentLayer.h> |
| 47 #include <public/WebImageLayer.h> | 48 #include <public/WebImageLayer.h> |
| 48 #include <public/WebLayer.h> | 49 #include <public/WebLayer.h> |
| 49 #include <public/WebSolidColorLayer.h> | 50 #include <public/WebSolidColorLayer.h> |
| 50 | 51 |
| 51 enum LayerTreeAsTextBehaviorFlags { | 52 enum LayerTreeAsTextBehaviorFlags { |
| 52 LayerTreeAsTextBehaviorNormal = 0, | 53 LayerTreeAsTextBehaviorNormal = 0, |
| 53 LayerTreeAsTextDebug = 1 << 0, // Dump extra debugging info like layer addre
sses. | 54 LayerTreeAsTextDebug = 1 << 0, // Dump extra debugging info like layer addre
sses. |
| 54 LayerTreeAsTextIncludeVisibleRects = 1 << 1, | 55 LayerTreeAsTextIncludeVisibleRects = 1 << 1, |
| 55 LayerTreeAsTextIncludeRepaintRects = 1 << 2, | 56 LayerTreeAsTextIncludeRepaintRects = 1 << 2, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 226 |
| 226 GraphicsLayerClient* client() const { return m_client; } | 227 GraphicsLayerClient* client() const { return m_client; } |
| 227 | 228 |
| 228 // Layer name. Only used to identify layers in debug output | 229 // Layer name. Only used to identify layers in debug output |
| 229 const String& name() const { return m_name; } | 230 const String& name() const { return m_name; } |
| 230 void setName(const String&); | 231 void setName(const String&); |
| 231 | 232 |
| 232 // Layer ID from platform-specific layer. Only used to identify layers in th
e compositor for debugging purposes. | 233 // Layer ID from platform-specific layer. Only used to identify layers in th
e compositor for debugging purposes. |
| 233 int debugID() const; | 234 int debugID() const; |
| 234 | 235 |
| 236 void setCompositingReasons(WebKit::WebCompositingReasons); |
| 237 |
| 235 GraphicsLayer* parent() const { return m_parent; }; | 238 GraphicsLayer* parent() const { return m_parent; }; |
| 236 void setParent(GraphicsLayer*); // Internal use only. | 239 void setParent(GraphicsLayer*); // Internal use only. |
| 237 | 240 |
| 238 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). | 241 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). |
| 239 bool hasAncestor(GraphicsLayer*) const; | 242 bool hasAncestor(GraphicsLayer*) const; |
| 240 | 243 |
| 241 const Vector<GraphicsLayer*>& children() const { return m_children; } | 244 const Vector<GraphicsLayer*>& children() const { return m_children; } |
| 242 // Returns true if the child list changed. | 245 // Returns true if the child list changed. |
| 243 bool setChildren(const Vector<GraphicsLayer*>&); | 246 bool setChildren(const Vector<GraphicsLayer*>&); |
| 244 | 247 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 | 579 |
| 577 | 580 |
| 578 } // namespace WebCore | 581 } // namespace WebCore |
| 579 | 582 |
| 580 #ifndef NDEBUG | 583 #ifndef NDEBUG |
| 581 // Outside the WebCore namespace for ease of invocation from gdb. | 584 // Outside the WebCore namespace for ease of invocation from gdb. |
| 582 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 585 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 583 #endif | 586 #endif |
| 584 | 587 |
| 585 #endif // GraphicsLayer_h | 588 #endif // GraphicsLayer_h |
| OLD | NEW |