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

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: Fix even more build dependencies 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
« no previous file with comments | « gpu/gpu.gyp ('k') | webkit/common/gpu/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « gpu/gpu.gyp ('k') | webkit/common/gpu/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698