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

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

Issue 2586803003: Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: (ownsurface) add low_priority to buffer_traits Created 3 years, 11 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: 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..5b799b2ccbbc94d0e5b947150a84cc1cc20d7154 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp
@@ -27,6 +27,10 @@ Platform::ContextAttributes toPlatformContextAttributes(
Platform::ContextAttributes result;
result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat();
result.webGLVersion = webGLVersion;
+ result.supportAlpha = attrs.alpha();
+ result.supportDepth = attrs.depth();
+ result.supportStencil = attrs.stencil();
+ result.supportAntialias = attrs.antialias();
return result;
}

Powered by Google App Engine
This is Rietveld 408576698