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

Side by Side 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: Addressed Khushal's initial comments Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "blimp/client/public/compositor/compositor_dependencies.h"
11
12 namespace cc {
13 class ContextProvider;
14 }
15
16 namespace blimp {
17 namespace client {
18
19 class BlimpGpuMemoryBufferManager;
20
21 class CompositorDependenciesImpl : public CompositorDependencies {
22 public:
23 CompositorDependenciesImpl();
24 ~CompositorDependenciesImpl() override;
25
26 // CompositorDependencies implementation.
27 std::unique_ptr<cc::LayerTreeSettings> GetLayerTreeSettings() override;
28 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
29 cc::SurfaceManager* GetSurfaceManager() override;
30 uint32_t AllocateSurfaceId() override;
31 void GetContextProvider(const ContextProviderCallback& callback) override;
32
33 private:
34 std::unique_ptr<BlimpGpuMemoryBufferManager> gpu_memory_buffer_manager_;
35 std::unique_ptr<cc::SurfaceManager> surface_manager_;
36 uint32_t next_surface_id_;
37
38 DISALLOW_COPY_AND_ASSIGN(CompositorDependenciesImpl);
39 };
40
41 } // namespace client
42 } // namespace blimp
43
44 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_COMPOSITOR_DEPENDENCIES_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698