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

Side by Side Diff: Source/core/html/canvas/ContextAttributeHelpers.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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
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 "config.h" 5 #include "config.h"
6 #include "core/html/canvas/ContextAttributeHelpers.h" 6 #include "core/html/canvas/ContextAttributeHelpers.h"
7 7
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 11 matching lines...) Expand all
22 result.setAlpha(attrs.alpha()); 22 result.setAlpha(attrs.alpha());
23 result.setDepth(attrs.depth()); 23 result.setDepth(attrs.depth());
24 result.setStencil(attrs.stencil()); 24 result.setStencil(attrs.stencil());
25 result.setAntialias(attrs.antialias()); 25 result.setAntialias(attrs.antialias());
26 result.setPremultipliedAlpha(attrs.premultipliedAlpha()); 26 result.setPremultipliedAlpha(attrs.premultipliedAlpha());
27 result.setPreserveDrawingBuffer(attrs.preserveDrawingBuffer()); 27 result.setPreserveDrawingBuffer(attrs.preserveDrawingBuffer());
28 result.setFailIfMajorPerformanceCaveat(attrs.failIfMajorPerformanceCaveat()) ; 28 result.setFailIfMajorPerformanceCaveat(attrs.failIfMajorPerformanceCaveat()) ;
29 return result; 29 return result;
30 } 30 }
31 31
32 WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLCon textAttributes& attrs, const blink::WebString& topDocumentURL, Settings* setting s, unsigned webGLVersion) 32 WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLCon textAttributes& attrs, const WebString& topDocumentURL, Settings* settings, unsi gned webGLVersion)
33 { 33 {
34 blink::WebGraphicsContext3D::Attributes result; 34 WebGraphicsContext3D::Attributes result;
35 result.alpha = attrs.alpha(); 35 result.alpha = attrs.alpha();
36 result.depth = attrs.depth(); 36 result.depth = attrs.depth();
37 result.stencil = attrs.stencil(); 37 result.stencil = attrs.stencil();
38 result.antialias = attrs.antialias(); 38 result.antialias = attrs.antialias();
39 if (attrs.antialias()) { 39 if (attrs.antialias()) {
40 if (settings && !settings->openGLMultisamplingEnabled()) 40 if (settings && !settings->openGLMultisamplingEnabled())
41 result.antialias = false; 41 result.antialias = false;
42 } 42 }
43 result.premultipliedAlpha = attrs.premultipliedAlpha(); 43 result.premultipliedAlpha = attrs.premultipliedAlpha();
44 result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat(); 44 result.failIfMajorPerformanceCaveat = attrs.failIfMajorPerformanceCaveat();
45 45
46 result.noExtensions = true; 46 result.noExtensions = true;
47 result.shareResources = false; 47 result.shareResources = false;
48 result.preferDiscreteGPU = true; 48 result.preferDiscreteGPU = true;
49 49
50 result.topDocumentURL = topDocumentURL; 50 result.topDocumentURL = topDocumentURL;
51 51
52 result.webGL = true; 52 result.webGL = true;
53 result.webGLVersion = webGLVersion; 53 result.webGLVersion = webGLVersion;
54 return result; 54 return result;
55 } 55 }
56 56
57 } // namespace blink 57 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/ContextAttributeHelpers.h ('k') | Source/core/html/canvas/WebGL2RenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698