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

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

Issue 126093010: Use ContextProvider subclass to provide WGC3D pointers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 cc {
14 class ContextProvider;
15 }
16
17 namespace content { 13 namespace content {
14 class ContextProviderWebContext;
18 15
19 class CONTENT_EXPORT WebGraphicsContext3DProviderImpl 16 class CONTENT_EXPORT WebGraphicsContext3DProviderImpl
20 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) { 17 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) {
21 public: 18 public:
22 explicit WebGraphicsContext3DProviderImpl( 19 explicit WebGraphicsContext3DProviderImpl(
23 scoped_refptr<cc::ContextProvider> provider); 20 scoped_refptr<ContextProviderWebContext> provider);
24 virtual ~WebGraphicsContext3DProviderImpl(); 21 virtual ~WebGraphicsContext3DProviderImpl();
25 22
26 // WebGraphicsContext3DProvider implementation. 23 // WebGraphicsContext3DProvider implementation.
27 virtual blink::WebGraphicsContext3D* context3d() OVERRIDE; 24 virtual blink::WebGraphicsContext3D* context3d() OVERRIDE;
28 virtual GrContext* grContext() OVERRIDE; 25 virtual GrContext* grContext() OVERRIDE;
29 26
30 private: 27 private:
31 scoped_refptr<cc::ContextProvider> provider_; 28 scoped_refptr<ContextProviderWebContext> provider_;
32 }; 29 };
33 30
34 } // namespace content 31 } // namespace content
35 32
36 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ 33 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698