Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Unified Diff: blimp/client/core/compositor/blimp_compositor_dependencies_impl.h

Issue 2274323002: Expose Blimp dependencies to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@khushal_baseline_1
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/client/core/compositor/blimp_compositor_dependencies_impl.h
diff --git a/blimp/client/core/compositor/blimp_compositor_dependencies_impl.h b/blimp/client/core/compositor/blimp_compositor_dependencies_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..58d11e06543efa78a8f487d4cfab9f36e1252459
--- /dev/null
+++ b/blimp/client/core/compositor/blimp_compositor_dependencies_impl.h
@@ -0,0 +1,49 @@
+// 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_IMPL_H_
+#define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_DEPENDENCIES_IMPL_H_
+
+#include "base/macros.h"
+#include "base/memory/ptr_util.h"
+#include "base/memory/ref_counted.h"
+#include "blimp/client/core/compositor/blimp_compositor_dependencies.h"
+
+namespace base {
Khushal 2016/08/24 23:22:45 nit: terminate namespace.
David Trainor- moved to gerrit 2016/08/26 17:15:53 Done.
+class Thread;
+}
+
+namespace blimp {
+
+class BlimpTaskGraphRunner;
Khushal 2016/08/24 23:22:45 Why is this not in the client namespace?
David Trainor- moved to gerrit 2016/08/26 17:15:53 Oddly it was in blimp/common/compositor. Not used
+
+namespace client {
+
+class CompositorDependencies;
+
+class BlimpCompositorDependenciesImpl : public BlimpCompositorDependencies {
+ public:
+ explicit BlimpCompositorDependenciesImpl(
+ std::unique_ptr<CompositorDependencies> embedder_dependencies);
+ ~BlimpCompositorDependenciesImpl() override;
+
+ // BlimpCompositorDependencies implementation.
+ CompositorDependencies* GetEmbedderDependencies() override;
+ cc::TaskGraphRunner* GetTaskGraphRunner() override;
+ scoped_refptr<base::SingleThreadTaskRunner> GetCompositorTaskRunner()
+ override;
+ cc::ImageSerializationProcessor* GetImageSerializationProcessor() override;
+
+ private:
+ std::unique_ptr<CompositorDependencies> embedder_dependencies_;
+ std::unique_ptr<base::Thread> compositor_impl_thread_;
+ std::unique_ptr<blimp::BlimpTaskGraphRunner> task_graph_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpCompositorDependenciesImpl);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_DEPENDENCIES_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698