| Index: blimp/client/support/compositor/compositor_dependencies_impl.h
|
| diff --git a/blimp/client/support/compositor/compositor_dependencies_impl.h b/blimp/client/support/compositor/compositor_dependencies_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2971431590a233730157663462c4aa1e6efec6be
|
| --- /dev/null
|
| +++ b/blimp/client/support/compositor/compositor_dependencies_impl.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
|
| +#define BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "blimp/client/public/compositor/compositor_dependencies.h"
|
| +
|
| +namespace cc {
|
| +class ContextProvider;
|
| +}
|
| +
|
| +namespace blimp {
|
| +namespace client {
|
| +
|
| +class BlimpGpuMemoryBufferManager;
|
| +
|
| +class CompositorDependenciesImpl : public CompositorDependencies {
|
| + public:
|
| + CompositorDependenciesImpl();
|
| + ~CompositorDependenciesImpl() override;
|
| +
|
| + // CompositorDependencies implementation.
|
| + cc::LayerTreeSettings* GetLayerTreeSettings() override;
|
| + gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
|
| + cc::SurfaceManager* GetSurfaceManager() override;
|
| + uint32_t AllocateSurfaceId() override;
|
| + void GetContextProvider(const ContextProviderCallback& callback) override;
|
| +
|
| + private:
|
| + std::unique_ptr<cc::LayerTreeSettings> settings_;
|
| + std::unique_ptr<BlimpGpuMemoryBufferManager> gpu_memory_buffer_manager_;
|
| + std::unique_ptr<cc::SurfaceManager> surface_manager_;
|
| + uint32_t next_surface_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CompositorDependenciesImpl);
|
| +};
|
| +
|
| +} // namespace client
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
|
|
|