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 CommitVSyncParameters(base::TimeTicks timebase, | |
46 base::TimeDelta interval) override {} | |
47 void OutputSurfaceLost() override {} | 45 void OutputSurfaceLost() override {} |
48 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} | 46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} |
49 | 47 |
50 // cc::SurfaceFactoryClient implementation. | 48 // cc::SurfaceFactoryClient implementation. |
51 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
52 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 50 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
53 | 51 |
54 void ReturnResourcesInChildFrame(); | 52 void ReturnResourcesInChildFrame(); |
55 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, | 53 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, |
56 uint32_t compositor_routing_id, | 54 uint32_t compositor_routing_id, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 86 |
89 // This is owned by |display_|. | 87 // This is owned by |display_|. |
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 |