Chromium Code Reviews| 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 WebLayer* innerViewportClipLayer, | |
|
wjmaclean
2013/06/17 18:42:41
Ooops, I'll change these to be "const WebLayer*"
| |
| 127 WebLayer* pageScaleLayerLayer, | |
| 128 WebLayer* innerViewportScrollLayer, | |
| 129 WebLayer* outerViewportScrollLayer, | |
| 130 WebLayer* innerViewportHorizontalScrollbarLayer, | |
| 131 WebLayer* innerViewportVerticalScrollbarLayer) { } | |
| 124 | 132 |
| 125 // Debugging / dangerous --------------------------------------------- | 133 // Debugging / dangerous --------------------------------------------- |
| 126 | 134 |
| 127 // Toggles the FPS counter in the HUD layer | 135 // Toggles the FPS counter in the HUD layer |
| 128 virtual void setShowFPSCounter(bool) { } | 136 virtual void setShowFPSCounter(bool) { } |
| 129 | 137 |
| 130 // Toggles the paint rects in the HUD layer | 138 // Toggles the paint rects in the HUD layer |
| 131 virtual void setShowPaintRects(bool) { } | 139 virtual void setShowPaintRects(bool) { } |
| 132 | 140 |
| 133 // Toggles the debug borders on layers | 141 // Toggles the debug borders on layers |
| 134 virtual void setShowDebugBorders(bool) { } | 142 virtual void setShowDebugBorders(bool) { } |
| 135 | 143 |
| 136 // Toggles continuous painting | 144 // Toggles continuous painting |
| 137 virtual void setContinuousPaintingEnabled(bool) { } | 145 virtual void setContinuousPaintingEnabled(bool) { } |
| 138 }; | 146 }; |
| 139 | 147 |
| 140 } // namespace WebKit | 148 } // namespace WebKit |
| 141 | 149 |
| 142 #endif // WebLayerTreeView_h | 150 #endif // WebLayerTreeView_h |
| OLD | NEW |