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 28 matching lines...) Expand all Loading... |
39 void CommitFrame(); | 39 void CommitFrame(); |
40 | 40 |
41 // cc::LayerTreeHostClient overrides. | 41 // cc::LayerTreeHostClient overrides. |
42 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 42 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
43 virtual void DidBeginMainFrame() OVERRIDE; | 43 virtual void DidBeginMainFrame() OVERRIDE; |
44 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} | 44 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} |
45 virtual void Layout() OVERRIDE {} | 45 virtual void Layout() OVERRIDE {} |
46 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 46 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
47 float page_scale, | 47 float page_scale, |
48 float top_controls_delta) OVERRIDE {} | 48 float top_controls_delta) OVERRIDE {} |
49 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 49 virtual void RequestNewOutputSurface(bool fallback) OVERRIDE; |
50 bool fallback) OVERRIDE; | |
51 virtual void DidInitializeOutputSurface() OVERRIDE {} | 50 virtual void DidInitializeOutputSurface() OVERRIDE {} |
52 virtual void WillCommit() OVERRIDE {} | 51 virtual void WillCommit() OVERRIDE {} |
53 virtual void DidCommit() OVERRIDE {} | 52 virtual void DidCommit() OVERRIDE {} |
54 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 53 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
55 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 54 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
56 | 55 |
57 // cc::LayerTreeHostSingleThreadClient overrides. | 56 // cc::LayerTreeHostSingleThreadClient overrides. |
58 virtual void DidPostSwapBuffers() OVERRIDE {} | 57 virtual void DidPostSwapBuffers() OVERRIDE {} |
59 virtual void DidAbortSwapBuffers() OVERRIDE {} | 58 virtual void DidAbortSwapBuffers() OVERRIDE {} |
60 | 59 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 ParentOutputSurface* output_surface_; | 93 ParentOutputSurface* output_surface_; |
95 | 94 |
96 ParentCompositorDrawConstraints draw_constraints_; | 95 ParentCompositorDrawConstraints draw_constraints_; |
97 | 96 |
98 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 97 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
99 }; | 98 }; |
100 | 99 |
101 } // namespace android_webview | 100 } // namespace android_webview |
102 | 101 |
103 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 102 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
OLD | NEW |