| 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 blimp { | |
| 13 namespace client { | |
| 14 | |
| 15 class BlimpGpuMemoryBufferManager; | |
| 16 | |
| 17 class CompositorDependenciesImpl : public CompositorDependencies { | |
| 18 public: | |
| 19 CompositorDependenciesImpl(); | |
| 20 ~CompositorDependenciesImpl() override; | |
| 21 | |
| 22 // CompositorDependencies implementation. | |
| 23 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | |
| 24 cc::SurfaceManager* GetSurfaceManager() override; | |
| 25 cc::FrameSinkId AllocateFrameSinkId() override; | |
| 26 void GetContextProviders(const ContextProviderCallback& callback) override; | |
| 27 | |
| 28 private: | |
| 29 std::unique_ptr<BlimpGpuMemoryBufferManager> gpu_memory_buffer_manager_; | |
| 30 std::unique_ptr<cc::SurfaceManager> surface_manager_; | |
| 31 uint32_t next_surface_id_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(CompositorDependenciesImpl); | |
| 34 }; | |
| 35 | |
| 36 } // namespace client | |
| 37 } // namespace blimp | |
| 38 | |
| 39 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_ | |
| OLD | NEW |