| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // This can have a significant performance impact and should be used with ca
re. | 114 // This can have a significant performance impact and should be used with ca
re. |
| 115 virtual void finishAllRendering() = 0; | 115 virtual void finishAllRendering() = 0; |
| 116 | 116 |
| 117 // Prevents updates to layer tree from becoming visible. | 117 // Prevents updates to layer tree from becoming visible. |
| 118 virtual void setDeferCommits(bool deferCommits) { } | 118 virtual void setDeferCommits(bool deferCommits) { } |
| 119 | 119 |
| 120 // Take responsiblity for this layer's animations, even if this layer hasn't
yet | 120 // Take responsiblity for this layer's animations, even if this layer hasn't
yet |
| 121 // been added to the tree. | 121 // been added to the tree. |
| 122 virtual void registerForAnimations(WebLayer* layer) { } | 122 virtual void registerForAnimations(WebLayer* layer) { } |
| 123 | 123 |
| 124 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 125 virtual void registerPinchViewportLayers( |
| 126 const WebLayer* innerViewportClipLayer, |
| 127 const WebLayer* pageScaleLayerLayer, |
| 128 const WebLayer* innerViewportScrollLayer, |
| 129 const WebLayer* outerViewportScrollLayer, |
| 130 const WebLayer* innerViewportHorizontalScrollbarLayer, |
| 131 const WebLayer* innerViewportVerticalScrollbarLayer) { } |
| 132 virtual void clearPinchViewportLayers() { } |
| 124 | 133 |
| 125 // Debugging / dangerous --------------------------------------------- | 134 // Debugging / dangerous --------------------------------------------- |
| 126 | 135 |
| 127 // Toggles the FPS counter in the HUD layer | 136 // Toggles the FPS counter in the HUD layer |
| 128 virtual void setShowFPSCounter(bool) { } | 137 virtual void setShowFPSCounter(bool) { } |
| 129 | 138 |
| 130 // Toggles the paint rects in the HUD layer | 139 // Toggles the paint rects in the HUD layer |
| 131 virtual void setShowPaintRects(bool) { } | 140 virtual void setShowPaintRects(bool) { } |
| 132 | 141 |
| 133 // Toggles the debug borders on layers | 142 // Toggles the debug borders on layers |
| 134 virtual void setShowDebugBorders(bool) { } | 143 virtual void setShowDebugBorders(bool) { } |
| 135 | 144 |
| 136 // Toggles continuous painting | 145 // Toggles continuous painting |
| 137 virtual void setContinuousPaintingEnabled(bool) { } | 146 virtual void setContinuousPaintingEnabled(bool) { } |
| 138 }; | 147 }; |
| 139 | 148 |
| 140 } // namespace WebKit | 149 } // namespace WebKit |
| 141 | 150 |
| 142 #endif // WebLayerTreeView_h | 151 #endif // WebLayerTreeView_h |
| OLD | NEW |