| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "android_webview/browser/render_thread_manager.h" | 10 #include "android_webview/browser/render_thread_manager.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 explicit HardwareRenderer(RenderThreadManager* state); | 35 explicit HardwareRenderer(RenderThreadManager* state); |
| 36 ~HardwareRenderer() override; | 36 ~HardwareRenderer() override; |
| 37 | 37 |
| 38 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); | 38 void DrawGL(AwDrawGLInfo* draw_info, const ScopedAppGLStateRestore& gl_state); |
| 39 void CommitFrame(); | 39 void CommitFrame(); |
| 40 | 40 |
| 41 void SetBackingFrameBufferObject(int framebuffer_binding_ext); | 41 void SetBackingFrameBufferObject(int framebuffer_binding_ext); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // cc::DisplayClient overrides. | 44 // cc::DisplayClient overrides. |
| 45 void OutputSurfaceLost() override {} | 45 void DisplayOutputSurfaceLost() override {} |
| 46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} | 46 void DisplaySetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} |
| 47 | 47 |
| 48 // cc::SurfaceFactoryClient implementation. | 48 // cc::SurfaceFactoryClient implementation. |
| 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 51 | 51 |
| 52 void ReturnResourcesInChildFrame(); | 52 void ReturnResourcesInChildFrame(); |
| 53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, | 53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, |
| 54 uint32_t compositor_routing_id, | 54 uint32_t compositor_routing_id, |
| 55 uint32_t output_surface_id); | 55 uint32_t output_surface_id); |
| 56 | 56 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 // This is owned by |display_|. | 87 // This is owned by |display_|. |
| 88 ParentOutputSurface* output_surface_; | 88 ParentOutputSurface* output_surface_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 90 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace android_webview | 93 } // namespace android_webview |
| 94 | 94 |
| 95 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 95 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |