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/shared_renderer_state.h" | 8 #include "android_webview/browser/shared_renderer_state.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 float page_scale) OVERRIDE {} | 46 float page_scale) OVERRIDE {} |
47 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 47 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
48 bool fallback) OVERRIDE; | 48 bool fallback) OVERRIDE; |
49 virtual void DidInitializeOutputSurface() OVERRIDE {} | 49 virtual void DidInitializeOutputSurface() OVERRIDE {} |
50 virtual void WillCommit() OVERRIDE {} | 50 virtual void WillCommit() OVERRIDE {} |
51 virtual void DidCommit() OVERRIDE {} | 51 virtual void DidCommit() OVERRIDE {} |
52 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 52 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
53 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 53 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
54 | 54 |
55 // cc::LayerTreeHostSingleThreadClient overrides. | 55 // cc::LayerTreeHostSingleThreadClient overrides. |
56 virtual void ScheduleComposite() OVERRIDE {} | |
57 virtual void ScheduleAnimation() OVERRIDE {} | |
58 virtual void DidPostSwapBuffers() OVERRIDE {} | 56 virtual void DidPostSwapBuffers() OVERRIDE {} |
59 virtual void DidAbortSwapBuffers() OVERRIDE {} | 57 virtual void DidAbortSwapBuffers() OVERRIDE {} |
60 | 58 |
61 // cc::DelegatedFrameResourceCollectionClient overrides. | 59 // cc::DelegatedFrameResourceCollectionClient overrides. |
62 virtual void UnusedResourcesAreAvailable() OVERRIDE; | 60 virtual void UnusedResourcesAreAvailable() OVERRIDE; |
63 | 61 |
64 private: | 62 private: |
65 SharedRendererState* shared_renderer_state_; | 63 SharedRendererState* shared_renderer_state_; |
66 | 64 |
67 typedef void* EGLContext; | 65 typedef void* EGLContext; |
(...skipping 20 matching lines...) Expand all Loading... |
88 | 86 |
89 // This is owned indirectly by |layer_tree_host_|. | 87 // This is owned indirectly by |layer_tree_host_|. |
90 ParentOutputSurface* output_surface_; | 88 ParentOutputSurface* output_surface_; |
91 | 89 |
92 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
93 }; | 91 }; |
94 | 92 |
95 } // namespace android_webview | 93 } // namespace android_webview |
96 | 94 |
97 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 95 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
OLD | NEW |