Chromium Code Reviews| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, | 121 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, |
| 122 scoped_refptr<cc::ContextProvider> context_provider); | 122 scoped_refptr<cc::ContextProvider> context_provider); |
| 123 | 123 |
| 124 bool HavePendingReadbacks(); | 124 bool HavePendingReadbacks(); |
| 125 void SetBackgroundColor(int color); | 125 void SetBackgroundColor(int color); |
| 126 | 126 |
| 127 cc::FrameSinkId frame_sink_id_; | 127 cc::FrameSinkId frame_sink_id_; |
| 128 | 128 |
| 129 // root_layer_ is the persistent internal root layer, while subroot_layer_ | 129 // root_layer_ is the persistent internal root layer, while subroot_layer_ |
| 130 // is the one attached by the compositor client. | 130 // is the one attached by the compositor client. |
| 131 scoped_refptr<cc::Layer> root_layer_; | |
|
boliu
2017/01/03 19:16:11
this used to live in WindowAndroid? then perhaps t
Jinsuk Kim
2017/01/04 10:45:02
Compositor is shared among all content (so ViewRoo
boliu
2017/01/04 17:45:10
Well.. webview doesn't use this compositor, and ev
Jinsuk Kim
2017/01/05 11:03:12
Learned the hard way that Chrome also can have mul
boliu
2017/01/05 19:09:28
Overlay panel like contextual search? Maybe we sho
| |
| 131 scoped_refptr<cc::Layer> subroot_layer_; | 132 scoped_refptr<cc::Layer> subroot_layer_; |
| 132 | 133 |
| 133 // Subtree for hidden layers with CopyOutputRequests on them. | 134 // Subtree for hidden layers with CopyOutputRequests on them. |
| 134 scoped_refptr<cc::Layer> readback_layer_tree_; | 135 scoped_refptr<cc::Layer> readback_layer_tree_; |
| 135 | 136 |
| 136 // Destruction order matters here: | 137 // Destruction order matters here: |
| 137 std::unique_ptr<cc::AnimationHost> animation_host_; | 138 std::unique_ptr<cc::AnimationHost> animation_host_; |
| 138 std::unique_ptr<cc::LayerTreeHost> host_; | 139 std::unique_ptr<cc::LayerTreeHost> host_; |
| 139 ui::ResourceManagerImpl resource_manager_; | 140 ui::ResourceManagerImpl resource_manager_; |
| 140 | 141 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 168 | 169 |
| 169 gpu::Capabilities gpu_capabilities_; | 170 gpu::Capabilities gpu_capabilities_; |
| 170 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 171 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 173 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace content | 176 } // namespace content |
| 176 | 177 |
| 177 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 178 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |