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

Side by Side Diff: content/renderer/webgraphicscontext3d_provider_impl.h

Issue 890873007: Cleanup: Move ContextProviderWebContext into cc/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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_
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/renderer/webgraphicscontext3d_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698