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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp

Issue 2461803002: Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: Drop unnecessary dependent patch Created 4 years, 1 month 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: third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp b/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
index bf24b48cc493db93e2ab13e909380e1816151277..8b1163838d81946941ea549e068909578c393a60 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
@@ -25,6 +25,10 @@ Platform::ContextAttributes toPlatformContextAttributes(
const CanvasContextCreationAttributes& attrs,
unsigned webGLVersion) {
Platform::ContextAttributes result;
+ result.alpha = attrs.alpha();
+ result.depth = attrs.depth();
+ result.stencil = attrs.stencil();
+ result.antialias = attrs.antialias();
result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat();
result.webGLVersion = webGLVersion;
return result;

Powered by Google App Engine
This is Rietveld 408576698