| 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 {} |
| 55 virtual void DidPostSwapBuffers() OVERRIDE {} | 57 virtual void DidPostSwapBuffers() OVERRIDE {} |
| 56 virtual void DidAbortSwapBuffers() OVERRIDE {} | 58 virtual void DidAbortSwapBuffers() OVERRIDE {} |
| 57 | 59 |
| 58 // cc::DelegatedFrameResourceCollectionClient overrides. | 60 // cc::DelegatedFrameResourceCollectionClient overrides. |
| 59 virtual void UnusedResourcesAreAvailable() OVERRIDE; | 61 virtual void UnusedResourcesAreAvailable() OVERRIDE; |
| 60 | 62 |
| 61 private: | 63 private: |
| 62 SharedRendererState* shared_renderer_state_; | 64 SharedRendererState* shared_renderer_state_; |
| 63 | 65 |
| 64 typedef void* EGLContext; | 66 typedef void* EGLContext; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 85 | 87 |
| 86 // This is owned indirectly by |layer_tree_host_|. | 88 // This is owned indirectly by |layer_tree_host_|. |
| 87 ParentOutputSurface* output_surface_; | 89 ParentOutputSurface* output_surface_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 91 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace android_webview | 94 } // namespace android_webview |
| 93 | 95 |
| 94 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 96 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |