OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
6 #define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 6 #define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" | 11 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" |
12 | 12 |
13 namespace webkit { | 13 namespace cc_blink { |
14 namespace gpu { | |
15 class ContextProviderWebContext; | 14 class ContextProviderWebContext; |
16 } // namespace webkit | 15 } |
17 } // namespace gpu | |
18 | 16 |
19 namespace content { | 17 namespace content { |
20 | 18 |
21 class CONTENT_EXPORT WebGraphicsContext3DProviderImpl | 19 class CONTENT_EXPORT WebGraphicsContext3DProviderImpl |
22 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) { | 20 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) { |
23 public: | 21 public: |
24 explicit WebGraphicsContext3DProviderImpl( | 22 explicit WebGraphicsContext3DProviderImpl( |
25 scoped_refptr<webkit::gpu::ContextProviderWebContext> provider); | 23 scoped_refptr<cc_blink::ContextProviderWebContext> provider); |
26 virtual ~WebGraphicsContext3DProviderImpl(); | 24 virtual ~WebGraphicsContext3DProviderImpl(); |
27 | 25 |
28 // WebGraphicsContext3DProvider implementation. | 26 // WebGraphicsContext3DProvider implementation. |
29 virtual blink::WebGraphicsContext3D* context3d() override; | 27 virtual blink::WebGraphicsContext3D* context3d() override; |
30 virtual GrContext* grContext() override; | 28 virtual GrContext* grContext() override; |
31 | 29 |
32 private: | 30 private: |
33 scoped_refptr<webkit::gpu::ContextProviderWebContext> provider_; | 31 scoped_refptr<cc_blink::ContextProviderWebContext> provider_; |
34 }; | 32 }; |
35 | 33 |
36 } // namespace content | 34 } // namespace content |
37 | 35 |
38 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 36 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
OLD | NEW |