| 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/surfaces/display_client.h" | 12 #include "cc/surfaces/display_client.h" |
| 13 #include "cc/surfaces/frame_sink_id.h" | 13 #include "cc/surfaces/frame_sink_id.h" |
| 14 #include "cc/surfaces/surface_factory_client.h" | 14 #include "cc/surfaces/surface_factory_client.h" |
| 15 #include "cc/surfaces/surface_id.h" | 15 #include "cc/surfaces/surface_id.h" |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 class Display; | 18 class CompositorFrameSinkSupport; |
| 19 class SurfaceIdAllocator; | 19 class SurfaceIdAllocator; |
| 20 class SurfaceFactory; | |
| 21 class SurfaceManager; | 20 class SurfaceManager; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace gfx { | 23 namespace gfx { |
| 25 class Rect; | 24 class Rect; |
| 26 class Size; | 25 class Size; |
| 27 class Transform; | 26 class Transform; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace android_webview { | 29 namespace android_webview { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 65 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 67 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 66 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 68 | 67 |
| 69 void SetEmptyRootFrame(); | 68 void SetEmptyRootFrame(); |
| 70 | 69 |
| 71 uint32_t next_client_id_; | 70 uint32_t next_client_id_; |
| 72 | 71 |
| 73 cc::FrameSinkId frame_sink_id_; | 72 cc::FrameSinkId frame_sink_id_; |
| 74 | 73 |
| 75 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 74 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 76 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; | |
| 77 std::unique_ptr<cc::Display> display_; | |
| 78 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 75 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 79 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 76 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; |
| 80 | 77 |
| 81 cc::LocalFrameId root_id_; | 78 cc::LocalFrameId root_id_; |
| 82 std::vector<cc::SurfaceId> child_ids_; | 79 std::vector<cc::SurfaceId> child_ids_; |
| 83 | 80 |
| 84 // This is owned by |display_|. | 81 // This is owned by |display_|. |
| 85 ParentOutputSurface* output_surface_; | 82 ParentOutputSurface* output_surface_; |
| 86 | 83 |
| 87 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); | 84 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace android_webview | 87 } // namespace android_webview |
| 91 | 88 |
| 92 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 89 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
| OLD | NEW |