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