| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 // Indicates that an animation needs to be updated. | 101 // Indicates that an animation needs to be updated. |
| 102 virtual void setNeedsAnimate() = 0; | 102 virtual void setNeedsAnimate() = 0; |
| 103 | 103 |
| 104 // Indicates whether a commit is pending. | 104 // Indicates whether a commit is pending. |
| 105 virtual bool commitRequested() const = 0; | 105 virtual bool commitRequested() const = 0; |
| 106 | 106 |
| 107 // Relays the end of a fling animation. | 107 // Relays the end of a fling animation. |
| 108 virtual void didStopFlinging() { } | 108 virtual void didStopFlinging() { } |
| 109 | 109 |
| 110 // Composites and attempts to read back the result into the provided | |
| 111 // buffer. If it wasn't possible, e.g. due to context lost, will return | |
| 112 // false. Pixel format is 32bit (RGBA), and the provided buffer must be | |
| 113 // large enough contain viewportSize().width() * viewportSize().height() | |
| 114 // pixels. The WebLayerTreeView does not assume ownership of the buffer. | |
| 115 // The buffer is not modified if the false is returned. | |
| 116 virtual bool compositeAndReadback(void *pixels, const WebRect&) = 0; | |
| 117 | |
| 118 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 110 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 119 // object alive until it is called. | 111 // object alive until it is called. |
| 120 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 112 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
| 121 | 113 |
| 122 // Blocks until the most recently composited frame has finished rendering on
the GPU. | 114 // Blocks until the most recently composited frame has finished rendering on
the GPU. |
| 123 // This can have a significant performance impact and should be used with ca
re. | 115 // This can have a significant performance impact and should be used with ca
re. |
| 124 virtual void finishAllRendering() = 0; | 116 virtual void finishAllRendering() = 0; |
| 125 | 117 |
| 126 // Prevents updates to layer tree from becoming visible. | 118 // Prevents updates to layer tree from becoming visible. |
| 127 virtual void setDeferCommits(bool deferCommits) { } | 119 virtual void setDeferCommits(bool deferCommits) { } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 151 // Toggles continuous painting | 143 // Toggles continuous painting |
| 152 virtual void setContinuousPaintingEnabled(bool) { } | 144 virtual void setContinuousPaintingEnabled(bool) { } |
| 153 | 145 |
| 154 // Toggles scroll bottleneck rects on the HUD layer | 146 // Toggles scroll bottleneck rects on the HUD layer |
| 155 virtual void setShowScrollBottleneckRects(bool) { } | 147 virtual void setShowScrollBottleneckRects(bool) { } |
| 156 }; | 148 }; |
| 157 | 149 |
| 158 } // namespace blink | 150 } // namespace blink |
| 159 | 151 |
| 160 #endif // WebLayerTreeView_h | 152 #endif // WebLayerTreeView_h |
| OLD | NEW |