| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void OnVSync(base::TimeTicks timebase, | 57 virtual void OnVSync(base::TimeTicks timebase, |
| 58 base::TimeDelta interval) = 0; | 58 base::TimeDelta interval) = 0; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 CompositorImpl(CompositorClient* client, gfx::NativeWindow root_window); | 61 CompositorImpl(CompositorClient* client, gfx::NativeWindow root_window); |
| 62 ~CompositorImpl() override; | 62 ~CompositorImpl() override; |
| 63 | 63 |
| 64 static bool IsInitialized(); | 64 static bool IsInitialized(); |
| 65 | 65 |
| 66 static cc::SurfaceManager* GetSurfaceManager(); | 66 static cc::SurfaceManager* GetSurfaceManager(); |
| 67 static std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); | 67 static uint32_t AllocateSurfaceClientId(); |
| 68 | 68 |
| 69 static scoped_refptr<cc::VulkanInProcessContextProvider> | 69 static scoped_refptr<cc::VulkanInProcessContextProvider> |
| 70 SharedVulkanContextProviderAndroid(); | 70 SharedVulkanContextProviderAndroid(); |
| 71 | 71 |
| 72 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities); | 72 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities); |
| 73 | 73 |
| 74 void AddObserver(VSyncObserver* observer); | 74 void AddObserver(VSyncObserver* observer); |
| 75 void RemoveObserver(VSyncObserver* observer); | 75 void RemoveObserver(VSyncObserver* observer); |
| 76 void OnNeedsBeginFramesChange(bool needs_begin_frames); | 76 void OnNeedsBeginFramesChange(bool needs_begin_frames); |
| 77 | 77 |
| (...skipping 93 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 |