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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.h

Issue 126093010: Use ContextProvider subclass to provide WGC3D pointers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/context_provider_command_buffer.h
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h
index d61e05c3c51699a5a1cb88a8cc9cc1b3f92b1faa..24a04b162e37631a7790e9e1b0c41ff3a6470710 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -12,6 +12,7 @@
#include "cc/output/context_provider.h"
#include "content/common/content_export.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
+#include "webkit/common/gpu/context_provider_web_context.h"
namespace webkit {
namespace gpu {
@@ -24,7 +25,7 @@ namespace content {
// Implementation of cc::ContextProvider that provides a
// WebGraphicsContext3DCommandBufferImpl context and a GrContext.
class CONTENT_EXPORT ContextProviderCommandBuffer
- : NON_EXPORTED_BASE(public cc::ContextProvider) {
+ : NON_EXPORTED_BASE(public webkit::gpu::ContextProviderWebContext) {
public:
static scoped_refptr<ContextProviderCommandBuffer> Create(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
@@ -38,9 +39,12 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
leak_on_destroy_ = true;
}
+ // ContextProviderWebContext implementation.
+ virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE;
+
// cc::ContextProvider implementation.
virtual bool BindToCurrentThread() OVERRIDE;
- virtual WebGraphicsContext3DCommandBufferImpl* Context3d() OVERRIDE;
+ virtual blink::WebGraphicsContext3D* Context3d() OVERRIDE;
virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE;
virtual gpu::ContextSupport* ContextSupport() OVERRIDE;
virtual class GrContext* GrContext() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698