| 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 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "cc/scheduler/begin_frame_source.h" | |
| 13 #include "cc/surfaces/display_client.h" | 12 #include "cc/surfaces/display_client.h" |
| 14 #include "cc/surfaces/surface_factory_client.h" | 13 #include "cc/surfaces/surface_factory_client.h" |
| 15 #include "cc/surfaces/surface_id.h" | 14 #include "cc/surfaces/surface_id.h" |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 class Display; | 17 class Display; |
| 19 class SurfaceIdAllocator; | 18 class SurfaceIdAllocator; |
| 20 class SurfaceFactory; | 19 class SurfaceFactory; |
| 21 class SurfaceManager; | 20 class SurfaceManager; |
| 22 } | 21 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 68 |
| 70 // cc::SurfaceFactoryClient implementation. | 69 // cc::SurfaceFactoryClient implementation. |
| 71 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 70 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 72 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 71 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 73 | 72 |
| 74 void SetEmptyRootFrame(); | 73 void SetEmptyRootFrame(); |
| 75 | 74 |
| 76 uint32_t next_surface_client_id_; | 75 uint32_t next_surface_client_id_; |
| 77 | 76 |
| 78 scoped_refptr<AwGLSurface> gl_surface_; | 77 scoped_refptr<AwGLSurface> gl_surface_; |
| 79 cc::StubBeginFrameSource begin_frame_source_; | |
| 80 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 78 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 81 std::unique_ptr<cc::Display> display_; | 79 std::unique_ptr<cc::Display> display_; |
| 82 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 80 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 83 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 81 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
| 84 | 82 |
| 85 cc::SurfaceId root_id_; | 83 cc::SurfaceId root_id_; |
| 86 std::vector<cc::SurfaceId> child_ids_; | 84 std::vector<cc::SurfaceId> child_ids_; |
| 87 | 85 |
| 88 // This is owned by |display_|. | 86 // This is owned by |display_|. |
| 89 ParentOutputSurface* output_surface_; | 87 ParentOutputSurface* output_surface_; |
| 90 | 88 |
| 91 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); | 89 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace android_webview | 92 } // namespace android_webview |
| 95 | 93 |
| 96 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 94 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
| OLD | NEW |