| Index: third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
|
| index ee6298c9a7ab8bf16be11aa618fb59eb2f0519b0..0e36c32492a13f12074a38b10adf6fedccceb5f9 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h
|
| @@ -15,6 +15,12 @@
|
| #include "wtf/text/StringHash.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| +namespace gpu {
|
| +namespace gles2 {
|
| +class GLES2Interface;
|
| +}
|
| +}
|
| +
|
| namespace blink {
|
|
|
| class WebGraphicsContext3D;
|
| @@ -23,8 +29,8 @@ class PLATFORM_EXPORT Extensions3DUtil final {
|
| USING_FAST_MALLOC(Extensions3DUtil);
|
| WTF_MAKE_NONCOPYABLE(Extensions3DUtil);
|
| public:
|
| - // Creates a new Extensions3DUtil. If the passed WebGraphicsContext3D has been spontaneously lost, returns null.
|
| - static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*);
|
| + // Creates a new Extensions3DUtil. If the passed GLES2Interface has been spontaneously lost, returns null.
|
| + static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
|
| ~Extensions3DUtil();
|
|
|
| bool isValid() { return m_isValid; }
|
| @@ -36,10 +42,11 @@ public:
|
| static bool canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destFormat, GLenum destType, GLint level);
|
|
|
| private:
|
| - Extensions3DUtil(WebGraphicsContext3D*);
|
| + Extensions3DUtil(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*);
|
| void initializeExtensions();
|
|
|
| WebGraphicsContext3D* m_context;
|
| + gpu::gles2::GLES2Interface* m_gl;
|
| HashSet<String> m_enabledExtensions;
|
| HashSet<String> m_requestableExtensions;
|
| bool m_isValid;
|
|
|