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

Side by Side Diff: Source/core/html/canvas/WebGLVertexArrayObjectOES.h

Issue 106503003: Changed GL enums from GraphicsContext3D to standard versions (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « Source/core/html/canvas/WebGLTexture.cpp ('k') | Source/platform/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual ~WebGLVertexArrayObjectOES(); 43 virtual ~WebGLVertexArrayObjectOES();
44 44
45 static PassRefPtr<WebGLVertexArrayObjectOES> create(WebGLRenderingContext*, VaoType); 45 static PassRefPtr<WebGLVertexArrayObjectOES> create(WebGLRenderingContext*, VaoType);
46 46
47 // Cached values for vertex attrib range checks 47 // Cached values for vertex attrib range checks
48 struct VertexAttribState { 48 struct VertexAttribState {
49 VertexAttribState() 49 VertexAttribState()
50 : enabled(false) 50 : enabled(false)
51 , bytesPerElement(0) 51 , bytesPerElement(0)
52 , size(4) 52 , size(4)
53 , type(GraphicsContext3D::FLOAT) 53 , type(GL_FLOAT)
54 , normalized(false) 54 , normalized(false)
55 , stride(16) 55 , stride(16)
56 , originalStride(0) 56 , originalStride(0)
57 , offset(0) 57 , offset(0)
58 , divisor(0) 58 , divisor(0)
59 { 59 {
60 } 60 }
61 61
62 bool enabled; 62 bool enabled;
63 RefPtr<WebGLBuffer> bufferBinding; 63 RefPtr<WebGLBuffer> bufferBinding;
(...skipping 29 matching lines...) Expand all
93 93
94 VaoType m_type; 94 VaoType m_type;
95 bool m_hasEverBeenBound; 95 bool m_hasEverBeenBound;
96 RefPtr<WebGLBuffer> m_boundElementArrayBuffer; 96 RefPtr<WebGLBuffer> m_boundElementArrayBuffer;
97 Vector<VertexAttribState> m_vertexAttribState; 97 Vector<VertexAttribState> m_vertexAttribState;
98 }; 98 };
99 99
100 } // namespace WebCore 100 } // namespace WebCore
101 101
102 #endif // WebGLVertexArrayObjectOES_h 102 #endif // WebGLVertexArrayObjectOES_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLTexture.cpp ('k') | Source/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698