| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 public: | 83 public: |
| 84 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer
Client*); | 84 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer
Client*); |
| 85 | 85 |
| 86 virtual ~GraphicsLayer(); | 86 virtual ~GraphicsLayer(); |
| 87 | 87 |
| 88 GraphicsLayerClient* client() const { return m_client; } | 88 GraphicsLayerClient* client() const { return m_client; } |
| 89 | 89 |
| 90 // blink::WebLayerClient implementation. | 90 // blink::WebLayerClient implementation. |
| 91 virtual blink::WebString debugName(blink::WebLayer*) OVERRIDE; | 91 virtual blink::WebString debugName(blink::WebLayer*) OVERRIDE; |
| 92 virtual blink::WebGraphicsLayerDebugInfo* takeDebugInfo() OVERRIDE; | 92 virtual blink::WebGraphicsLayerDebugInfo* takeDebugInfo() OVERRIDE; |
| 93 virtual blink::WebGraphicsLayerDebugInfo* takeDebugInfoFor(blink::WebLayer*)
OVERRIDE; |
| 93 | 94 |
| 94 GraphicsLayerDebugInfo& debugInfo(); | 95 GraphicsLayerDebugInfo& debugInfo(); |
| 95 | 96 |
| 96 void setCompositingReasons(CompositingReasons); | 97 void setCompositingReasons(CompositingReasons); |
| 97 CompositingReasons compositingReasons() const { return m_debugInfo.compositi
ngReasons(); } | 98 CompositingReasons compositingReasons() const { return m_debugInfo.compositi
ngReasons(); } |
| 98 | 99 |
| 99 GraphicsLayer* parent() const { return m_parent; }; | 100 GraphicsLayer* parent() const { return m_parent; }; |
| 100 void setParent(GraphicsLayer*); // Internal use only. | 101 void setParent(GraphicsLayer*); // Internal use only. |
| 101 | 102 |
| 102 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). | 103 // Returns true if the layer has the given layer as an ancestor (excluding s
elf). |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 409 |
| 409 | 410 |
| 410 } // namespace WebCore | 411 } // namespace WebCore |
| 411 | 412 |
| 412 #ifndef NDEBUG | 413 #ifndef NDEBUG |
| 413 // Outside the WebCore namespace for ease of invocation from gdb. | 414 // Outside the WebCore namespace for ease of invocation from gdb. |
| 414 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 415 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 415 #endif | 416 #endif |
| 416 | 417 |
| 417 #endif // GraphicsLayer_h | 418 #endif // GraphicsLayer_h |
| OLD | NEW |