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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.cpp

Issue 1846713004: Remove premultipliedAlpha from WebGraphicsContext3D::Attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: premul: tests2 Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/WebGLContextAttributeHelpers.h" 5 #include "modules/webgl/WebGLContextAttributeHelpers.h"
6 6
7 #include "core/frame/Settings.h" 7 #include "core/frame/Settings.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 14 matching lines...) Expand all
25 { 25 {
26 WebGraphicsContext3D::Attributes result; 26 WebGraphicsContext3D::Attributes result;
27 result.alpha = attrs.alpha(); 27 result.alpha = attrs.alpha();
28 result.depth = attrs.depth(); 28 result.depth = attrs.depth();
29 result.stencil = attrs.stencil(); 29 result.stencil = attrs.stencil();
30 result.antialias = attrs.antialias(); 30 result.antialias = attrs.antialias();
31 if (attrs.antialias()) { 31 if (attrs.antialias()) {
32 if (settings && !settings->openGLMultisamplingEnabled()) 32 if (settings && !settings->openGLMultisamplingEnabled())
33 result.antialias = false; 33 result.antialias = false;
34 } 34 }
35 result.premultipliedAlpha = attrs.premultipliedAlpha();
36 result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat(); 35 result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat();
37 36
38 result.shareResources = false; 37 result.shareResources = false;
39 result.preferDiscreteGPU = true; 38 result.preferDiscreteGPU = true;
40 39
41 result.topDocumentURL = topDocumentURL; 40 result.topDocumentURL = topDocumentURL;
42 41
43 result.webGLVersion = webGLVersion; 42 result.webGLVersion = webGLVersion;
44 return result; 43 return result;
45 } 44 }
46 45
47 } // namespace blink 46 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698