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 11 matching lines...) Expand all Loading... |
22 #include "content/common/gpu/client/context_provider_command_buffer.h" | 22 #include "content/common/gpu/client/context_provider_command_buffer.h" |
23 #include "content/public/browser/android/compositor.h" | 23 #include "content/public/browser/android/compositor.h" |
24 #include "gpu/command_buffer/common/capabilities.h" | 24 #include "gpu/command_buffer/common/capabilities.h" |
25 #include "gpu/ipc/common/surface_handle.h" | 25 #include "gpu/ipc/common/surface_handle.h" |
26 #include "third_party/khronos/GLES2/gl2.h" | 26 #include "third_party/khronos/GLES2/gl2.h" |
27 #include "ui/android/context_provider_factory.h" | 27 #include "ui/android/context_provider_factory.h" |
28 #include "ui/android/resources/resource_manager_impl.h" | 28 #include "ui/android/resources/resource_manager_impl.h" |
29 #include "ui/android/resources/ui_resource_provider.h" | 29 #include "ui/android/resources/ui_resource_provider.h" |
30 #include "ui/android/window_android_compositor.h" | 30 #include "ui/android/window_android_compositor.h" |
31 | 31 |
32 class SkBitmap; | |
33 struct ANativeWindow; | 32 struct ANativeWindow; |
34 | 33 |
35 namespace cc { | 34 namespace cc { |
36 class Display; | 35 class Display; |
37 class Layer; | 36 class Layer; |
38 class LayerTreeHost; | 37 class LayerTreeHost; |
39 class OutputSurface; | 38 class OutputSurface; |
40 class SurfaceIdAllocator; | |
41 class SurfaceManager; | |
42 class VulkanContextProvider; | 39 class VulkanContextProvider; |
43 class VulkanInProcessContextProvider; | |
44 } | 40 } |
45 | 41 |
46 namespace content { | 42 namespace content { |
47 class CompositorClient; | 43 class CompositorClient; |
48 | 44 |
49 // ----------------------------------------------------------------------------- | 45 // ----------------------------------------------------------------------------- |
50 // Browser-side compositor that manages a tree of content and UI layers. | 46 // Browser-side compositor that manages a tree of content and UI layers. |
51 // ----------------------------------------------------------------------------- | 47 // ----------------------------------------------------------------------------- |
52 class CONTENT_EXPORT CompositorImpl | 48 class CONTENT_EXPORT CompositorImpl |
53 : public Compositor, | 49 : public Compositor, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 gpu::Capabilities gpu_capabilities_; | 179 gpu::Capabilities gpu_capabilities_; |
184 bool needs_begin_frames_; | 180 bool needs_begin_frames_; |
185 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 181 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
186 | 182 |
187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 183 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
188 }; | 184 }; |
189 | 185 |
190 } // namespace content | 186 } // namespace content |
191 | 187 |
192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 188 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |