| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 class WebWidget; | 9 class WebWidget; |
| 10 struct WebScreenInfo; | 10 struct WebScreenInfo; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Requests a visual frame-based update to the state of the delegate if there | 77 // Requests a visual frame-based update to the state of the delegate if there |
| 78 // an update available. | 78 // an update available. |
| 79 virtual void UpdateVisualState() = 0; | 79 virtual void UpdateVisualState() = 0; |
| 80 | 80 |
| 81 // Indicates that the compositor is about to begin a frame. This is primarily | 81 // Indicates that the compositor is about to begin a frame. This is primarily |
| 82 // to signal to flow control mechanisms that a frame is beginning, not to | 82 // to signal to flow control mechanisms that a frame is beginning, not to |
| 83 // perform actual painting work. | 83 // perform actual painting work. |
| 84 virtual void WillBeginCompositorFrame() = 0; | 84 virtual void WillBeginCompositorFrame() = 0; |
| 85 | 85 |
| 86 // Indicates that the last commit would have a blurry content or potential |
| 87 // performance regression in a fixed raster scale layer. |
| 88 virtual void ReportFixedRasterScaleUseCounters( |
| 89 bool has_blurry_content, |
| 90 bool has_potential_performance_regression) = 0; |
| 91 |
| 86 protected: | 92 protected: |
| 87 virtual ~RenderWidgetCompositorDelegate() {} | 93 virtual ~RenderWidgetCompositorDelegate() {} |
| 88 }; | 94 }; |
| 89 | 95 |
| 90 } // namespace content | 96 } // namespace content |
| 91 | 97 |
| 92 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ | 98 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ |
| OLD | NEW |