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

Unified Diff: blimp/client/support/compositor/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: Fix linux build break 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/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_

Powered by Google App Engine
This is Rietveld 408576698