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

Side by Side Diff: cc/output/vulkan_derived_context_provider.h

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 CC_OUTPUT_VULKAN_DERIVED_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_VULKAN_DERIVED_CONTEXT_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/output/vulkan_context_provider.h"
11 #include "ui/gfx/native_widget_types.h"
12
13 namespace gpu {
14 class VulkanDeviceQueue;
15 class VulkanSurface;
16 }
17
18 namespace cc {
19
20 class CC_EXPORT VulkanDerivedContextProvider : public VulkanContextProvider {
piman 2016/04/19 01:36:42 I don't think this class is that useful. cc won't
David Yen 2016/04/19 22:20:27 Ok. I have removed VulkanDerivedContextProvider an
21 public:
22 static scoped_refptr<VulkanDerivedContextProvider> Create(
23 scoped_refptr<VulkanContextProvider> parent_context_provider,
24 gfx::AcceleratedWidget widget);
25
26 bool Initialize();
27 void Destroy();
28
29 gpu::VulkanDeviceQueue* GetDeviceQueue() override;
30 void SwapBuffers() override;
31
32 protected:
33 VulkanDerivedContextProvider(
34 scoped_refptr<VulkanContextProvider> parent_context_provider,
35 gfx::AcceleratedWidget widget);
36 ~VulkanDerivedContextProvider() override;
37
38 private:
39 scoped_refptr<VulkanContextProvider> parent_context_provider_;
40 scoped_ptr<gpu::VulkanSurface> surface_;
41
42 DISALLOW_COPY_AND_ASSIGN(VulkanDerivedContextProvider);
43 };
44
45 } // namespace cc
46
47 #endif // CC_OUTPUT_VULKAN_DERIVED_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698