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

Unified Diff: webkit/common/gpu/webgraphicscontext3d_impl.h

Issue 455783002: GPU context creation code duplication cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 4 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: webkit/common/gpu/webgraphicscontext3d_impl.h
diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.h b/webkit/common/gpu/webgraphicscontext3d_impl.h
index 83af0b4ad1ae5a9cdde0908e3ea52f6ff64e5d60..b16056f20d2d2cdb9786dffb971ac34d8adfa470 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;
+class 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;

Powered by Google App Engine
This is Rietveld 408576698