| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool isNull() const { return m_private.isNull(); } | 87 bool isNull() const { return m_private.isNull(); } |
| 88 | 88 |
| 89 #define WEBLAYERTREEVIEW_HAS_INITIALIZE | 89 #define WEBLAYERTREEVIEW_HAS_INITIALIZE |
| 90 // Initialization and lifecycle -------------------------------------- | 90 // Initialization and lifecycle -------------------------------------- |
| 91 | 91 |
| 92 // Attempts to initialize this WebLayerTreeView with the given client, root
layer, and settings. | 92 // Attempts to initialize this WebLayerTreeView with the given client, root
layer, and settings. |
| 93 // If initialization fails, this will return false and .isNull() will return
true. | 93 // If initialization fails, this will return false and .isNull() will return
true. |
| 94 // Must be called before any methods below. | 94 // Must be called before any methods below. |
| 95 WEBKIT_EXPORT bool initialize(WebLayerTreeViewClient*, const WebLayer& root,
const Settings&); | 95 WEBKIT_EXPORT bool initialize(WebLayerTreeViewClient*, const WebLayer& root,
const Settings&); |
| 96 | 96 |
| 97 // Indicates that the compositing surface used by this WebLayerTreeView is r
eady to use. |
| 98 // A WebLayerTreeView may request a context from its client before the surfa
ce is ready, |
| 99 // but it won't attempt to use it. |
| 100 WEBKIT_EXPORT void setSurfaceReady(); |
| 101 |
| 97 // Sets the root of the tree. The root is set by way of the constructor. | 102 // Sets the root of the tree. The root is set by way of the constructor. |
| 98 // This is typically used to explicitly set the root to null to break | 103 // This is typically used to explicitly set the root to null to break |
| 99 // cycles. | 104 // cycles. |
| 100 WEBKIT_EXPORT void setRootLayer(WebLayer*); | 105 WEBKIT_EXPORT void setRootLayer(WebLayer*); |
| 101 | 106 |
| 102 // Returns a unique identifier that can be used on the compositor thread to
request a | 107 // Returns a unique identifier that can be used on the compositor thread to
request a |
| 103 // WebCompositorInputHandler instance. | 108 // WebCompositorInputHandler instance. |
| 104 WEBKIT_EXPORT int compositorIdentifier(); | 109 WEBKIT_EXPORT int compositorIdentifier(); |
| 105 | 110 |
| 106 | 111 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 } | 187 } |
| 183 | 188 |
| 184 inline bool operator!=(const WebLayerTreeView& a, const WebLayerTreeView& b) | 189 inline bool operator!=(const WebLayerTreeView& a, const WebLayerTreeView& b) |
| 185 { | 190 { |
| 186 return !(a == b); | 191 return !(a == b); |
| 187 } | 192 } |
| 188 | 193 |
| 189 } // namespace WebKit | 194 } // namespace WebKit |
| 190 | 195 |
| 191 #endif // WebLayerTreeView_h | 196 #endif // WebLayerTreeView_h |
| OLD | NEW |