| 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 13 matching lines...) Expand all Loading... |
| 24 #include "gpu/ipc/common/surface_handle.h" | 24 #include "gpu/ipc/common/surface_handle.h" |
| 25 #include "third_party/khronos/GLES2/gl2.h" | 25 #include "third_party/khronos/GLES2/gl2.h" |
| 26 #include "ui/android/resources/resource_manager_impl.h" | 26 #include "ui/android/resources/resource_manager_impl.h" |
| 27 #include "ui/android/resources/ui_resource_provider.h" | 27 #include "ui/android/resources/ui_resource_provider.h" |
| 28 #include "ui/android/window_android_compositor.h" | 28 #include "ui/android/window_android_compositor.h" |
| 29 | 29 |
| 30 class SkBitmap; | 30 class SkBitmap; |
| 31 struct ANativeWindow; | 31 struct ANativeWindow; |
| 32 | 32 |
| 33 namespace cc { | 33 namespace cc { |
| 34 class BeginFrameSource; |
| 34 class Display; | 35 class Display; |
| 35 class Layer; | 36 class Layer; |
| 36 class LayerTreeHost; | 37 class LayerTreeHost; |
| 37 class SurfaceIdAllocator; | 38 class SurfaceIdAllocator; |
| 38 class SurfaceManager; | 39 class SurfaceManager; |
| 39 class VulkanInProcessContextProvider; | 40 class VulkanInProcessContextProvider; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace content { | 43 namespace content { |
| 43 class CompositorClient; | 44 class CompositorClient; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // is the one attached by the compositor client. | 136 // is the one attached by the compositor client. |
| 136 scoped_refptr<cc::Layer> root_layer_; | 137 scoped_refptr<cc::Layer> root_layer_; |
| 137 scoped_refptr<cc::Layer> subroot_layer_; | 138 scoped_refptr<cc::Layer> subroot_layer_; |
| 138 | 139 |
| 139 // Destruction order matters here: | 140 // Destruction order matters here: |
| 140 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 141 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 141 base::ObserverList<VSyncObserver, true> observer_list_; | 142 base::ObserverList<VSyncObserver, true> observer_list_; |
| 142 std::unique_ptr<cc::LayerTreeHost> host_; | 143 std::unique_ptr<cc::LayerTreeHost> host_; |
| 143 ui::ResourceManagerImpl resource_manager_; | 144 ui::ResourceManagerImpl resource_manager_; |
| 144 | 145 |
| 146 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
| 145 std::unique_ptr<cc::Display> display_; | 147 std::unique_ptr<cc::Display> display_; |
| 146 | 148 |
| 147 gfx::Size size_; | 149 gfx::Size size_; |
| 148 bool has_transparent_background_; | 150 bool has_transparent_background_; |
| 149 float device_scale_factor_; | 151 float device_scale_factor_; |
| 150 | 152 |
| 151 ANativeWindow* window_; | 153 ANativeWindow* window_; |
| 152 gpu::SurfaceHandle surface_handle_; | 154 gpu::SurfaceHandle surface_handle_; |
| 153 | 155 |
| 154 CompositorClient* client_; | 156 CompositorClient* client_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 175 gpu::Capabilities gpu_capabilities_; | 177 gpu::Capabilities gpu_capabilities_; |
| 176 bool needs_begin_frames_; | 178 bool needs_begin_frames_; |
| 177 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 179 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 181 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace content | 184 } // namespace content |
| 183 | 185 |
| 184 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 186 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |