Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / webkit / common / gpu / webgraphicscontext3d_impl.h
index 83af0b4..5cb055d 100644 (file)
@@ -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;