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

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

Issue 15481002: Make WebGL objects scriptwrappable so that binding integrity checks may be applied to them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebGLProgram really really. Created 7 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 | 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 25 matching lines...) Expand all
36 } 36 }
37 37
38 PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::create(GraphicsContex t3D::Attributes attributes) 38 PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::create(GraphicsContex t3D::Attributes attributes)
39 { 39 {
40 return adoptRef(new WebGLContextAttributes(attributes)); 40 return adoptRef(new WebGLContextAttributes(attributes));
41 } 41 }
42 42
43 WebGLContextAttributes::WebGLContextAttributes() 43 WebGLContextAttributes::WebGLContextAttributes()
44 : CanvasContextAttributes() 44 : CanvasContextAttributes()
45 { 45 {
46 ScriptWrappable::init(this);
46 } 47 }
47 48
48 WebGLContextAttributes::WebGLContextAttributes(GraphicsContext3D::Attributes att ributes) 49 WebGLContextAttributes::WebGLContextAttributes(GraphicsContext3D::Attributes att ributes)
49 : CanvasContextAttributes() 50 : CanvasContextAttributes()
50 , m_attrs(attributes) 51 , m_attrs(attributes)
51 { 52 {
53 ScriptWrappable::init(this);
52 } 54 }
53 55
54 WebGLContextAttributes::~WebGLContextAttributes() 56 WebGLContextAttributes::~WebGLContextAttributes()
55 { 57 {
56 } 58 }
57 59
58 bool WebGLContextAttributes::alpha() const 60 bool WebGLContextAttributes::alpha() const
59 { 61 {
60 return m_attrs.alpha; 62 return m_attrs.alpha;
61 } 63 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 { 116 {
115 m_attrs.preserveDrawingBuffer = preserveDrawingBuffer; 117 m_attrs.preserveDrawingBuffer = preserveDrawingBuffer;
116 } 118 }
117 119
118 GraphicsContext3D::Attributes WebGLContextAttributes::attributes() const 120 GraphicsContext3D::Attributes WebGLContextAttributes::attributes() const
119 { 121 {
120 return m_attrs; 122 return m_attrs;
121 } 123 }
122 124
123 } // namespace WebCore 125 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLContextAttributes.h ('k') | Source/core/html/canvas/WebGLDebugRendererInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698