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