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

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

Issue 136273002: Revert 244383 "Use ContextProvider subclass to provide WGC3D poi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/content/common/gpu/client/context_provider_command_buffer.h
===================================================================
--- trunk/src/content/common/gpu/client/context_provider_command_buffer.h (revision 244469)
+++ trunk/src/content/common/gpu/client/context_provider_command_buffer.h (working copy)
@@ -12,7 +12,6 @@
#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 {
@@ -25,7 +24,7 @@
// Implementation of cc::ContextProvider that provides a
// WebGraphicsContext3DCommandBufferImpl context and a GrContext.
class CONTENT_EXPORT ContextProviderCommandBuffer
- : NON_EXPORTED_BASE(public webkit::gpu::ContextProviderWebContext) {
+ : NON_EXPORTED_BASE(public cc::ContextProvider) {
public:
static scoped_refptr<ContextProviderCommandBuffer> Create(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
@@ -39,12 +38,9 @@
leak_on_destroy_ = true;
}
- // ContextProviderWebContext implementation.
- virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE;
-
// cc::ContextProvider implementation.
virtual bool BindToCurrentThread() OVERRIDE;
- virtual blink::WebGraphicsContext3D* Context3d() OVERRIDE;
+ virtual WebGraphicsContext3DCommandBufferImpl* 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