Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_CLIENT_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_ | |
| 6 #define BLIMP_CLIENT_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "base/memory/ptr_util.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 class ContextProvider; | |
| 13 class LayerTreeSettings; | |
| 14 class SurfaceManager; | |
| 15 } | |
|
Khushal
2016/08/24 23:22:46
nit: terminate namespace for this and gpu.
David Trainor- moved to gerrit
2016/08/26 17:15:54
Done.
| |
| 16 | |
| 17 namespace gpu { | |
| 18 class GpuMemoryBufferManager; | |
| 19 } | |
| 20 | |
| 21 namespace blimp { | |
| 22 namespace client { | |
| 23 | |
| 24 class CompositorDependencies { | |
| 25 public: | |
| 26 using ContextProviderCallback = | |
| 27 base::Callback<void(scoped_refptr<cc::ContextProvider>)>; | |
| 28 | |
| 29 virtual ~CompositorDependencies() = default; | |
| 30 | |
| 31 virtual std::unique_ptr<cc::LayerTreeSettings> GetLayerTreeSettings() = 0; | |
|
Khushal
2016/08/24 23:22:46
Since Chrome might not be able to do this for us r
David Trainor- moved to gerrit
2016/08/26 17:15:54
I'll pull the LayerTreeSettings from //blimp/clien
| |
| 32 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | |
| 33 virtual cc::SurfaceManager* GetSurfaceManager() = 0; | |
| 34 virtual uint32_t AllocateSurfaceId() = 0; | |
| 35 virtual void GetContextProvider(const ContextProviderCallback& callback) = 0; | |
| 36 }; | |
| 37 | |
| 38 } // namespace client | |
| 39 } // namespace blimp | |
| 40 | |
| 41 #endif // BLIMP_CLIENT_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_ | |
| OLD | NEW |