| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer
Client*); | 80 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer
Client*); |
| 81 | 81 |
| 82 ~GraphicsLayer() override; | 82 ~GraphicsLayer() override; |
| 83 | 83 |
| 84 GraphicsLayerClient* client() const { return m_client; } | 84 GraphicsLayerClient* client() const { return m_client; } |
| 85 | 85 |
| 86 GraphicsLayerDebugInfo& debugInfo(); | 86 GraphicsLayerDebugInfo& debugInfo(); |
| 87 | 87 |
| 88 void setCompositingReasons(CompositingReasons); | 88 void setCompositingReasons(CompositingReasons); |
| 89 CompositingReasons compositingReasons() const { return m_debugInfo.compositi
ngReasons(); } | 89 CompositingReasons compositingReasons() const { return m_debugInfo.compositi
ngReasons(); } |
| 90 void setOwnerNodeId(int); | |
| 91 | 90 |
| 92 GraphicsLayer* parent() const { return m_parent; } | 91 GraphicsLayer* parent() const { return m_parent; } |
| 93 void setParent(GraphicsLayer*); // Internal use only. | 92 void setParent(GraphicsLayer*); // Internal use only. |
| 94 | 93 |
| 95 const Vector<GraphicsLayer*>& children() const { return m_children; } | 94 const Vector<GraphicsLayer*>& children() const { return m_children; } |
| 96 // Returns true if the child list changed. | 95 // Returns true if the child list changed. |
| 97 bool setChildren(const GraphicsLayerVector&); | 96 bool setChildren(const GraphicsLayerVector&); |
| 98 | 97 |
| 99 // Add child layers. If the child is already parented, it will be removed fr
om its old parent. | 98 // Add child layers. If the child is already parented, it will be removed fr
om its old parent. |
| 100 void addChild(GraphicsLayer*); | 99 void addChild(GraphicsLayer*); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 }; | 384 }; |
| 386 | 385 |
| 387 } // namespace blink | 386 } // namespace blink |
| 388 | 387 |
| 389 #ifndef NDEBUG | 388 #ifndef NDEBUG |
| 390 // Outside the blink namespace for ease of invocation from gdb. | 389 // Outside the blink namespace for ease of invocation from gdb. |
| 391 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 390 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
| 392 #endif | 391 #endif |
| 393 | 392 |
| 394 #endif // GraphicsLayer_h | 393 #endif // GraphicsLayer_h |
| OLD | NEW |