Index: webkit/common/gpu/webgraphicscontext3d_impl.h |
diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.h b/webkit/common/gpu/webgraphicscontext3d_impl.h |
index 83af0b4ad1ae5a9cdde0908e3ea52f6ff64e5d60..5cb055db5f841ebcf7c4978b28828697370b0330 100644 |
--- a/webkit/common/gpu/webgraphicscontext3d_impl.h |
+++ b/webkit/common/gpu/webgraphicscontext3d_impl.h |
@@ -19,6 +19,7 @@ namespace gpu { |
namespace gles2 { |
class GLES2Interface; |
class GLES2ImplementationErrorMessageCallback; |
+struct ContextCreationAttribHelper; |
} |
} |
@@ -559,6 +560,12 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
return gl_; |
} |
+ // Convert WebGL context creation attributes into command buffer / EGL size |
+ // requests. |
+ static void ConvertAttributes( |
+ const blink::WebGraphicsContext3D::Attributes& attributes, |
+ ::gpu::gles2::ContextCreationAttribHelper* output_attribs); |
+ |
protected: |
friend class WebGraphicsContext3DErrorMessageCallback; |