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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above 9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer 10 * copyright notice, this list of conditions and the following disclaimer
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 WebGLContextAttributes::WebGLContextAttributes() 42 WebGLContextAttributes::WebGLContextAttributes()
43 : CanvasContextAttributes() 43 : CanvasContextAttributes()
44 , m_alpha(true) 44 , m_alpha(true)
45 , m_depth(true) 45 , m_depth(true)
46 , m_stencil(false) 46 , m_stencil(false)
47 , m_antialias(true) 47 , m_antialias(true)
48 , m_premultipliedAlpha(true) 48 , m_premultipliedAlpha(true)
49 , m_preserveDrawingBuffer(false) 49 , m_preserveDrawingBuffer(false)
50 , m_failIfMajorPerformanceCaveat(false) 50 , m_failIfMajorPerformanceCaveat(false)
51 { 51 {
52 ScriptWrappable::init(this);
53 } 52 }
54 53
55 WebGLContextAttributes::WebGLContextAttributes(const WebGLContextAttributes& att rs) 54 WebGLContextAttributes::WebGLContextAttributes(const WebGLContextAttributes& att rs)
56 : CanvasContextAttributes() 55 : CanvasContextAttributes()
57 , m_alpha(attrs.m_alpha) 56 , m_alpha(attrs.m_alpha)
58 , m_depth(attrs.m_depth) 57 , m_depth(attrs.m_depth)
59 , m_stencil(attrs.m_stencil) 58 , m_stencil(attrs.m_stencil)
60 , m_antialias(attrs.m_antialias) 59 , m_antialias(attrs.m_antialias)
61 , m_premultipliedAlpha(attrs.m_premultipliedAlpha) 60 , m_premultipliedAlpha(attrs.m_premultipliedAlpha)
62 , m_preserveDrawingBuffer(attrs.m_preserveDrawingBuffer) 61 , m_preserveDrawingBuffer(attrs.m_preserveDrawingBuffer)
63 , m_failIfMajorPerformanceCaveat(attrs.m_failIfMajorPerformanceCaveat) 62 , m_failIfMajorPerformanceCaveat(attrs.m_failIfMajorPerformanceCaveat)
64 { 63 {
65 ScriptWrappable::init(this);
66 } 64 }
67 65
68 PassRefPtrWillBeRawPtr<WebGLContextAttributes> WebGLContextAttributes::clone() c onst 66 PassRefPtrWillBeRawPtr<WebGLContextAttributes> WebGLContextAttributes::clone() c onst
69 { 67 {
70 return adoptRefWillBeNoop(new WebGLContextAttributes(*this)); 68 return adoptRefWillBeNoop(new WebGLContextAttributes(*this));
71 } 69 }
72 70
73 bool WebGLContextAttributes::alpha() const 71 bool WebGLContextAttributes::alpha() const
74 { 72 {
75 return m_alpha; 73 return m_alpha;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 160
163 attrs.topDocumentURL = topDocumentURL; 161 attrs.topDocumentURL = topDocumentURL;
164 162
165 attrs.webGL = true; 163 attrs.webGL = true;
166 attrs.webGLVersion = webGLVersion; 164 attrs.webGLVersion = webGLVersion;
167 165
168 return attrs; 166 return attrs;
169 } 167 }
170 168
171 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLCompressedTextureS3TC.cpp ('k') | Source/core/html/canvas/WebGLContextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698