From a94275402997c11dd2e778633dacf4b7e630a35d Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Fri, 22 Oct 2010 13:02:20 +0100 Subject: Merge WebKit at r70209: Initial merge by Git Change-Id: Id23a68efa36e9d1126bcce0b137872db00892c8e --- WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h') diff --git a/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h b/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h index 3ba3c52..05008c2 100644 --- a/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h +++ b/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.h @@ -47,6 +47,7 @@ class AffineTransform; class Color; class GraphicsContext3D; class FloatRect; +class HostWindow; class IntSize; class SolidFillShader; class TexShader; @@ -55,7 +56,7 @@ typedef HashMap > TextureHashMap; class SharedGraphicsContext3D : public RefCounted { public: - static PassRefPtr create(PassOwnPtr); + static PassRefPtr create(HostWindow*); ~SharedGraphicsContext3D(); // Functions that delegate directly to GraphicsContext3D, with caching @@ -117,14 +118,16 @@ public: // the texture. PassRefPtr createTexture(Texture::Format, int width, int height); + GraphicsContext3D* graphicsContext3D() const { return m_context.get(); } + private: - explicit SharedGraphicsContext3D(PassOwnPtr context); + SharedGraphicsContext3D(PassRefPtr, PassOwnPtr, PassOwnPtr); // Used to implement removeTexturesFor(), see the comment above. static HashSet* allContexts(); void removeTextureFor(NativeImagePtr); - OwnPtr m_context; + RefPtr m_context; unsigned m_quadVertices; -- cgit v1.1