| 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_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_ |
| 6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "blimp/client/public/compositor/compositor_dependencies.h" |
| 11 |
| 12 namespace cc { |
| 13 class ContextProvider; |
| 14 } |
| 15 |
| 16 namespace blimp { |
| 17 namespace client { |
| 18 |
| 19 class BlimpGpuMemoryBufferManager; |
| 20 |
| 21 class CompositorDependenciesImpl : public CompositorDependencies { |
| 22 public: |
| 23 CompositorDependenciesImpl(); |
| 24 ~CompositorDependenciesImpl() override; |
| 25 |
| 26 // CompositorDependencies implementation. |
| 27 cc::LayerTreeSettings* GetLayerTreeSettings() override; |
| 28 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
| 29 cc::SurfaceManager* GetSurfaceManager() override; |
| 30 uint32_t AllocateSurfaceId() override; |
| 31 void GetContextProvider(const ContextProviderCallback& callback) override; |
| 32 |
| 33 private: |
| 34 std::unique_ptr<cc::LayerTreeSettings> settings_; |
| 35 std::unique_ptr<BlimpGpuMemoryBufferManager> gpu_memory_buffer_manager_; |
| 36 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 37 uint32_t next_surface_id_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(CompositorDependenciesImpl); |
| 40 }; |
| 41 |
| 42 } // namespace client |
| 43 } // namespace blimp |
| 44 |
| 45 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_ |
| OLD | NEW |