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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2761153002: Ignore custom offscreen surface unless explicitly opted in (Closed)
Patch Set: Make "own offscreen surface" support explicit with its own attribute. Created 3 years, 9 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 | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 0bad0991e0c79661cb6165eb361cc90e2be494de..176a5470170c4b4f9ee2fa447196619586615afc 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -987,6 +987,9 @@ RendererBlinkPlatformImpl::createOffscreenGraphicsContext3DProvider(
attributes.depth_size = web_attributes.supportDepth ? 24 : 0;
attributes.stencil_size = web_attributes.supportStencil ? 8 : 0;
attributes.samples = web_attributes.supportAntialias ? 4 : 0;
+ attributes.own_offscreen_surface =
+ web_attributes.supportAlpha || web_attributes.supportDepth ||
+ web_attributes.supportStencil || web_attributes.supportAntialias;
attributes.sample_buffers = 0;
attributes.bind_generates_resource = false;
// Prefer discrete GPU for WebGL.
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698