OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void SetNeedsAnimate() override; | 123 void SetNeedsAnimate() override; |
124 void SetVisible(bool visible); | 124 void SetVisible(bool visible); |
125 void CreateOutputSurface(); | 125 void CreateOutputSurface(); |
126 void CreateLayerTreeHost(); | 126 void CreateLayerTreeHost(); |
127 | 127 |
128 void OnGpuChannelEstablished(); | 128 void OnGpuChannelEstablished(); |
129 void OnGpuChannelTimeout(); | 129 void OnGpuChannelTimeout(); |
130 | 130 |
131 // root_layer_ is the persistent internal root layer, while subroot_layer_ | 131 // root_layer_ is the persistent internal root layer, while subroot_layer_ |
132 // is the one attached by the compositor client. | 132 // is the one attached by the compositor client. |
133 scoped_refptr<cc::Layer> root_layer_; | |
134 scoped_refptr<cc::Layer> subroot_layer_; | 133 scoped_refptr<cc::Layer> subroot_layer_; |
135 | 134 |
136 // Destruction order matters here: | 135 // Destruction order matters here: |
137 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
138 base::ObserverList<VSyncObserver, true> observer_list_; | 137 base::ObserverList<VSyncObserver, true> observer_list_; |
139 std::unique_ptr<cc::LayerTreeHost> host_; | 138 std::unique_ptr<cc::LayerTreeHost> host_; |
140 ui::ResourceManagerImpl resource_manager_; | 139 ui::ResourceManagerImpl resource_manager_; |
141 | 140 |
142 std::unique_ptr<cc::Display> display_; | 141 std::unique_ptr<cc::Display> display_; |
143 | 142 |
(...skipping 28 matching lines...) Expand all Loading... |
172 gpu::Capabilities gpu_capabilities_; | 171 gpu::Capabilities gpu_capabilities_; |
173 bool needs_begin_frames_; | 172 bool needs_begin_frames_; |
174 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 173 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
175 | 174 |
176 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
177 }; | 176 }; |
178 | 177 |
179 } // namespace content | 178 } // namespace content |
180 | 179 |
181 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |