OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
7 | 7 |
8 #include "android_webview/browser/parent_compositor_draw_constraints.h" | 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
9 #include "android_webview/browser/shared_renderer_state.h" | 9 #include "android_webview/browser/shared_renderer_state.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 void DrawGL(bool stencil_enabled, | 36 void DrawGL(bool stencil_enabled, |
37 int framebuffer_binding_ext, | 37 int framebuffer_binding_ext, |
38 AwDrawGLInfo* draw_info); | 38 AwDrawGLInfo* draw_info); |
39 void CommitFrame(); | 39 void CommitFrame(); |
40 | 40 |
41 // cc::LayerTreeHostClient overrides. | 41 // cc::LayerTreeHostClient overrides. |
42 void WillBeginMainFrame() override {} | 42 void WillBeginMainFrame() override {} |
43 void DidBeginMainFrame() override; | 43 void DidBeginMainFrame() override; |
44 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 44 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
| 45 void BeginMainFrameNotExpectedSoon() override {} |
45 void Layout() override {} | 46 void Layout() override {} |
46 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 47 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
47 const gfx::Vector2dF& outer_delta, | 48 const gfx::Vector2dF& outer_delta, |
48 const gfx::Vector2dF& elastic_overscroll_delta, | 49 const gfx::Vector2dF& elastic_overscroll_delta, |
49 float page_scale, | 50 float page_scale, |
50 float top_controls_delta) override {} | 51 float top_controls_delta) override {} |
51 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 52 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
52 float page_scale, | 53 float page_scale, |
53 float top_controls_delta) override {} | 54 float top_controls_delta) override {} |
54 void RequestNewOutputSurface() override; | 55 void RequestNewOutputSurface() override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ParentOutputSurface* output_surface_; | 103 ParentOutputSurface* output_surface_; |
103 | 104 |
104 ParentCompositorDrawConstraints draw_constraints_; | 105 ParentCompositorDrawConstraints draw_constraints_; |
105 | 106 |
106 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 107 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
107 }; | 108 }; |
108 | 109 |
109 } // namespace android_webview | 110 } // namespace android_webview |
110 | 111 |
111 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 112 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
OLD | NEW |