| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 GraphicsLayerClient* client() const { return m_client; } | 226 GraphicsLayerClient* client() const { return m_client; } |
| 227 | 227 |
| 228 // Layer name. Only used to identify layers in debug output | 228 // Layer name. Only used to identify layers in debug output |
| 229 const String& name() const { return m_name; } | 229 const String& name() const { return m_name; } |
| 230 void setName(const String&); | 230 void setName(const String&); |
| 231 | 231 |
| 232 // Layer ID from platform-specific layer. Only used to identify layers in th
e compositor for debugging purposes. | 232 // Layer ID from platform-specific layer. Only used to identify layers in th
e compositor for debugging purposes. |
| 233 int debugID() const; | 233 int debugID() const; |
| 234 | 234 |
| 235 void setCompositingReasons(CompositingReasons); |
| 236 |
| 235 GraphicsLayer* parent() const { return m_parent; }; | 237 GraphicsLayer* parent() const { return m_parent; }; |
| 236 void setParent(GraphicsLayer*); // Internal use only. | 238 void setParent(GraphicsLayer*); // Internal use only. |
| 237 | 239 |
| 238 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). | 240 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). |
| 239 bool hasAncestor(GraphicsLayer*) const; | 241 bool hasAncestor(GraphicsLayer*) const; |
| 240 | 242 |
| 241 const Vector<GraphicsLayer*>& children() const { return m_children; } | 243 const Vector<GraphicsLayer*>& children() const { return m_children; } |
| 242 // Returns true if the child list changed. | 244 // Returns true if the child list changed. |
| 243 bool setChildren(const Vector<GraphicsLayer*>&); | 245 bool setChildren(const Vector<GraphicsLayer*>&); |
| 244 | 246 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 | 578 |
| 577 | 579 |
| 578 } // namespace WebCore | 580 } // namespace WebCore |
| 579 | 581 |
| 580 #ifndef NDEBUG | 582 #ifndef NDEBUG |
| 581 // Outside the WebCore namespace for ease of invocation from gdb. | 583 // Outside the WebCore namespace for ease of invocation from gdb. |
| 582 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 584 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 583 #endif | 585 #endif |
| 584 | 586 |
| 585 #endif // GraphicsLayer_h | 587 #endif // GraphicsLayer_h |
| OLD | NEW |