Chromium Code Reviews| Index: android_webview/browser/shared_renderer_state.h |
| diff --git a/android_webview/browser/shared_renderer_state.h b/android_webview/browser/shared_renderer_state.h |
| index 43c4b02e0bad7e80fa03f3b1ff625c6cadc8d275..613370635389b3fb2b03587d37e319d6e270159d 100644 |
| --- a/android_webview/browser/shared_renderer_state.h |
| +++ b/android_webview/browser/shared_renderer_state.h |
| @@ -38,8 +38,10 @@ class SharedRendererState { |
| gfx::Vector2d GetScrollOffset(); |
| bool HasCompositorFrame() const; |
| - void SetCompositorFrame(scoped_ptr<cc::CompositorFrame> frame); |
| + void SetCompositorFrame(scoped_ptr<cc::CompositorFrame> frame, |
| + bool force_commit); |
| scoped_ptr<cc::CompositorFrame> PassCompositorFrame(); |
| + bool ForceCommit(); |
|
hush (inactive)
2014/10/15 21:10:37
add a const in the end?
boliu
2014/10/16 01:20:11
Done.
|
| bool IsInsideHardwareRelease() const; |
| // Returns true if the draw constraints are updated. |
| @@ -76,6 +78,7 @@ class SharedRendererState { |
| mutable base::Lock lock_; |
| gfx::Vector2d scroll_offset_; |
| scoped_ptr<cc::CompositorFrame> compositor_frame_; |
| + bool force_commit_; |
| bool inside_hardware_release_; |
| bool needs_force_invalidate_on_next_draw_gl_; |
| ParentCompositorDrawConstraints parent_draw_constraints_; |