| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // Run layout and paint of all pending document changes asynchronously. | 122 // Run layout and paint of all pending document changes asynchronously. |
| 123 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback o
bject | 123 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback o
bject |
| 124 // alive until it is called. | 124 // alive until it is called. |
| 125 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } | 125 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } |
| 126 | 126 |
| 127 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 127 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 128 // object alive until it is called. | 128 // object alive until it is called. |
| 129 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 129 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
| 130 | 130 |
| 131 // Blocks until the most recently composited frame has finished rendering on
the GPU. | |
| 132 // This can have a significant performance impact and should be used with ca
re. | |
| 133 virtual void finishAllRendering() { } | |
| 134 | |
| 135 // Prevents updates to layer tree from becoming visible. | 131 // Prevents updates to layer tree from becoming visible. |
| 136 virtual void setDeferCommits(bool deferCommits) { } | 132 virtual void setDeferCommits(bool deferCommits) { } |
| 137 | 133 |
| 138 // Take responsiblity for this layer's animations, even if this layer hasn't
yet | 134 // Take responsiblity for this layer's animations, even if this layer hasn't
yet |
| 139 // been added to the tree. | 135 // been added to the tree. |
| 140 virtual void registerForAnimations(WebLayer* layer) { } | 136 virtual void registerForAnimations(WebLayer* layer) { } |
| 141 | 137 |
| 142 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 138 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 143 virtual void registerViewportLayers( | 139 virtual void registerViewportLayers( |
| 144 const WebLayer* overscrollElasticityLayer, | 140 const WebLayer* overscrollElasticityLayer, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 169 // Toggles continuous painting | 165 // Toggles continuous painting |
| 170 virtual void setContinuousPaintingEnabled(bool) { } | 166 virtual void setContinuousPaintingEnabled(bool) { } |
| 171 | 167 |
| 172 // Toggles scroll bottleneck rects on the HUD layer | 168 // Toggles scroll bottleneck rects on the HUD layer |
| 173 virtual void setShowScrollBottleneckRects(bool) { } | 169 virtual void setShowScrollBottleneckRects(bool) { } |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } // namespace blink | 172 } // namespace blink |
| 177 | 173 |
| 178 #endif // WebLayerTreeView_h | 174 #endif // WebLayerTreeView_h |
| OLD | NEW |