| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // WindowAndroidCompositor implementation. | 118 // WindowAndroidCompositor implementation. |
| 119 void RequestCopyOfOutputOnRootLayer( | 119 void RequestCopyOfOutputOnRootLayer( |
| 120 std::unique_ptr<cc::CopyOutputRequest> request) override; | 120 std::unique_ptr<cc::CopyOutputRequest> request) override; |
| 121 void OnVSync(base::TimeTicks frame_time, | 121 void OnVSync(base::TimeTicks frame_time, |
| 122 base::TimeDelta vsync_period) override; | 122 base::TimeDelta vsync_period) override; |
| 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(scoped_refptr<gpu::GpuChannelHost> gpu_channel); |
| 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> subroot_layer_; | 133 scoped_refptr<cc::Layer> subroot_layer_; |
| 134 | 134 |
| 135 // Destruction order matters here: | 135 // Destruction order matters here: |
| 136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 137 base::ObserverList<VSyncObserver, true> observer_list_; | 137 base::ObserverList<VSyncObserver, true> observer_list_; |
| 138 std::unique_ptr<cc::LayerTreeHost> host_; | 138 std::unique_ptr<cc::LayerTreeHost> host_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 gpu::Capabilities gpu_capabilities_; | 171 gpu::Capabilities gpu_capabilities_; |
| 172 bool needs_begin_frames_; | 172 bool needs_begin_frames_; |
| 173 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 173 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace content | 178 } // namespace content |
| 179 | 179 |
| 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |