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

Unified Diff: blimp/client/public/compositor/compositor_dependencies.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/public/compositor/compositor_dependencies.h
diff --git a/blimp/client/public/compositor/compositor_dependencies.h b/blimp/client/public/compositor/compositor_dependencies.h
new file mode 100644
index 0000000000000000000000000000000000000000..12b60d9a7fb23524084619d13336386c47d3db90
--- /dev/null
+++ b/blimp/client/public/compositor/compositor_dependencies.h
@@ -0,0 +1,41 @@
+// 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_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_
+#define BLIMP_CLIENT_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_
+
+#include "base/callback.h"
+#include "base/memory/ptr_util.h"
+
+namespace cc {
+class ContextProvider;
+class LayerTreeSettings;
+class SurfaceManager;
+}
Khushal 2016/08/24 23:22:46 nit: terminate namespace for this and gpu.
David Trainor- moved to gerrit 2016/08/26 17:15:54 Done.
+
+namespace gpu {
+class GpuMemoryBufferManager;
+}
+
+namespace blimp {
+namespace client {
+
+class CompositorDependencies {
+ public:
+ using ContextProviderCallback =
+ base::Callback<void(scoped_refptr<cc::ContextProvider>)>;
+
+ virtual ~CompositorDependencies() = default;
+
+ virtual std::unique_ptr<cc::LayerTreeSettings> GetLayerTreeSettings() = 0;
Khushal 2016/08/24 23:22:46 Since Chrome might not be able to do this for us r
David Trainor- moved to gerrit 2016/08/26 17:15:54 I'll pull the LayerTreeSettings from //blimp/clien
+ virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
+ virtual cc::SurfaceManager* GetSurfaceManager() = 0;
+ virtual uint32_t AllocateSurfaceId() = 0;
+ virtual void GetContextProvider(const ContextProviderCallback& callback) = 0;
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_PUBLIC_COMPOSITOR_COMPOSITOR_DEPENDENCIES_H_

Powered by Google App Engine
This is Rietveld 408576698