Chromium Code Reviews| Index: blimp/client/core/compositor/blimp_compositor_dependencies.h |
| diff --git a/blimp/client/core/compositor/blimp_compositor_dependencies.h b/blimp/client/core/compositor/blimp_compositor_dependencies.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7f684d9f250b72dadb125583b9215612c31bc1cb |
| --- /dev/null |
| +++ b/blimp/client/core/compositor/blimp_compositor_dependencies.h |
| @@ -0,0 +1,42 @@ |
| +// 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_CORE_COMPOSITOR_BLIMP_COMPOSITOR_DEPENDENCIES_H_ |
| +#define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_DEPENDENCIES_H_ |
| + |
| +#include "base/memory/ptr_util.h" |
| + |
| +namespace base { |
| +class SingleThreadTaskRunner; |
| +} |
| + |
| +namespace cc { |
| +class ImageSerializationProcessor; |
| +class TaskGraphRunner; |
| +} |
| + |
| +namespace blimp { |
| +namespace client { |
| + |
| +class CompositorDependencies; |
| + |
| +class BlimpCompositorDependencies { |
|
Khushal
2016/08/24 23:22:45
Just leave it concrete if you don't need subclasse
David Trainor- moved to gerrit
2016/08/26 17:15:53
Done.
|
| + public: |
| + virtual ~BlimpCompositorDependencies() = default; |
| + |
| + // External compositor dependencies provided by the embedder. |
| + virtual CompositorDependencies* GetEmbedderDependencies() = 0; |
| + |
| + // Threads shared by all BlimpCompositor instances. |
| + virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| + virtual scoped_refptr<base::SingleThreadTaskRunner> |
| + GetCompositorTaskRunner() = 0; |
| + |
| + virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; |
| +}; |
| + |
| +} // namespace client |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_DEPENDENCIES_H_ |