| 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 28 matching lines...) Expand all Loading... |
| 39 class SkBitmap; | 39 class SkBitmap; |
| 40 | 40 |
| 41 namespace cc { | 41 namespace cc { |
| 42 class AnimationTimeline; | 42 class AnimationTimeline; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class WebCompositeAndReadbackAsyncCallback; | 47 class WebCompositeAndReadbackAsyncCallback; |
| 48 class WebLayer; | 48 class WebLayer; |
| 49 class WebLayoutAndPaintAsyncCallback; | 49 class WebCompositeCallback; |
| 50 struct WebPoint; | 50 struct WebPoint; |
| 51 struct WebSelectionBound; | 51 struct WebSelectionBound; |
| 52 class WebSelection; | 52 class WebSelection; |
| 53 class WebWidget; | 53 class WebWidget; |
| 54 | 54 |
| 55 class WebLayerTreeView { | 55 class WebLayerTreeView { |
| 56 public: | 56 public: |
| 57 virtual ~WebLayerTreeView() { } | 57 virtual ~WebLayerTreeView() { } |
| 58 | 58 |
| 59 // Initialization and lifecycle -------------------------------------- | 59 // Initialization and lifecycle -------------------------------------- |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 // Indicates that blink needs a BeginFrame, but that nothing might actually
be dirty. | 116 // Indicates that blink needs a BeginFrame, but that nothing might actually
be dirty. |
| 117 virtual void setNeedsBeginFrame() { setNeedsAnimate(); } | 117 virtual void setNeedsBeginFrame() { setNeedsAnimate(); } |
| 118 | 118 |
| 119 // Indicates that blink needs a BeginFrame and to update compositor state. | 119 // Indicates that blink needs a BeginFrame and to update compositor state. |
| 120 virtual void setNeedsCompositorUpdate() { setNeedsAnimate(); } | 120 virtual void setNeedsCompositorUpdate() { setNeedsAnimate(); } |
| 121 | 121 |
| 122 // Relays the end of a fling animation. | 122 // Relays the end of a fling animation. |
| 123 virtual void didStopFlinging() { } | 123 virtual void didStopFlinging() { } |
| 124 | 124 |
| 125 // Run layout and paint of all pending document changes asynchronously. | |
| 126 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback o
bject | |
| 127 // alive until it is called. | |
| 128 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } | |
| 129 | |
| 130 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 125 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 131 // object alive until it is called. | 126 // object alive until it is called. |
| 132 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 127 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
| 133 | 128 |
| 134 // Prevents updates to layer tree from becoming visible. | 129 // Prevents updates to layer tree from becoming visible. |
| 135 virtual void setDeferCommits(bool deferCommits) { } | 130 virtual void setDeferCommits(bool deferCommits) { } |
| 136 | 131 |
| 137 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 132 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 138 virtual void registerViewportLayers( | 133 virtual void registerViewportLayers( |
| 139 const WebLayer* overscrollElasticityLayer, | 134 const WebLayer* overscrollElasticityLayer, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 169 // Toggles the debug borders on layers | 164 // Toggles the debug borders on layers |
| 170 virtual void setShowDebugBorders(bool) { } | 165 virtual void setShowDebugBorders(bool) { } |
| 171 | 166 |
| 172 // Toggles scroll bottleneck rects on the HUD layer | 167 // Toggles scroll bottleneck rects on the HUD layer |
| 173 virtual void setShowScrollBottleneckRects(bool) { } | 168 virtual void setShowScrollBottleneckRects(bool) { } |
| 174 }; | 169 }; |
| 175 | 170 |
| 176 } // namespace blink | 171 } // namespace blink |
| 177 | 172 |
| 178 #endif // WebLayerTreeView_h | 173 #endif // WebLayerTreeView_h |
| OLD | NEW |