OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SURFACES_INSTANCE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void AddChildId(const cc::SurfaceId& child_id); | 51 void AddChildId(const cc::SurfaceId& child_id); |
52 void RemoveChildId(const cc::SurfaceId& child_id); | 52 void RemoveChildId(const cc::SurfaceId& child_id); |
53 | 53 |
54 private: | 54 private: |
55 friend class base::RefCounted<SurfacesInstance>; | 55 friend class base::RefCounted<SurfacesInstance>; |
56 | 56 |
57 SurfacesInstance(); | 57 SurfacesInstance(); |
58 ~SurfacesInstance() override; | 58 ~SurfacesInstance() override; |
59 | 59 |
60 // cc::DisplayClient overrides. | 60 // cc::DisplayClient overrides. |
61 void DisplayOutputSurfaceLost() override {} | 61 void DisplayOutputSurfaceLost() override; |
62 void DisplayWillDrawAndSwap( | 62 void DisplayWillDrawAndSwap( |
63 bool will_draw_and_swap, | 63 bool will_draw_and_swap, |
64 const cc::RenderPassList& render_passes) override {} | 64 const cc::RenderPassList& render_passes) override {} |
65 void DisplayDidDrawAndSwap() override {} | 65 void DisplayDidDrawAndSwap() override {} |
66 | 66 |
67 // cc::SurfaceFactoryClient implementation. | 67 // cc::SurfaceFactoryClient implementation. |
68 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 68 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
69 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 69 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
70 | 70 |
71 void SetEmptyRootFrame(); | 71 void SetEmptyRootFrame(); |
(...skipping 12 matching lines...) Expand all Loading... |
84 | 84 |
85 // This is owned by |display_|. | 85 // This is owned by |display_|. |
86 ParentOutputSurface* output_surface_; | 86 ParentOutputSurface* output_surface_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); | 88 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace android_webview | 91 } // namespace android_webview |
92 | 92 |
93 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 93 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
OLD | NEW |