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

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

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « Source/core/html/canvas/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLGetInfo.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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 kTypeWebGLVertexArrayObjectOES, 71 kTypeWebGLVertexArrayObjectOES,
72 }; 72 };
73 73
74 explicit WebGLGetInfo(bool value); 74 explicit WebGLGetInfo(bool value);
75 WebGLGetInfo(const bool* value, int size); 75 WebGLGetInfo(const bool* value, int size);
76 explicit WebGLGetInfo(float value); 76 explicit WebGLGetInfo(float value);
77 explicit WebGLGetInfo(int value); 77 explicit WebGLGetInfo(int value);
78 // Represents the null value and type. 78 // Represents the null value and type.
79 WebGLGetInfo(); 79 WebGLGetInfo();
80 explicit WebGLGetInfo(const String& value); 80 explicit WebGLGetInfo(const String& value);
81 explicit WebGLGetInfo(unsigned int value); 81 explicit WebGLGetInfo(unsigned value);
82 explicit WebGLGetInfo(PassRefPtr<WebGLBuffer> value); 82 explicit WebGLGetInfo(PassRefPtr<WebGLBuffer> value);
83 explicit WebGLGetInfo(PassRefPtr<Float32Array> value); 83 explicit WebGLGetInfo(PassRefPtr<Float32Array> value);
84 explicit WebGLGetInfo(PassRefPtr<WebGLFramebuffer> value); 84 explicit WebGLGetInfo(PassRefPtr<WebGLFramebuffer> value);
85 explicit WebGLGetInfo(PassRefPtr<Int32Array> value); 85 explicit WebGLGetInfo(PassRefPtr<Int32Array> value);
86 // FIXME: implement WebGLObjectArray 86 // FIXME: implement WebGLObjectArray
87 // WebGLGetInfo(PassRefPtr<WebGLObjectArray> value); 87 // WebGLGetInfo(PassRefPtr<WebGLObjectArray> value);
88 explicit WebGLGetInfo(PassRefPtr<WebGLProgram> value); 88 explicit WebGLGetInfo(PassRefPtr<WebGLProgram> value);
89 explicit WebGLGetInfo(PassRefPtr<WebGLRenderbuffer> value); 89 explicit WebGLGetInfo(PassRefPtr<WebGLRenderbuffer> value);
90 explicit WebGLGetInfo(PassRefPtr<WebGLTexture> value); 90 explicit WebGLGetInfo(PassRefPtr<WebGLTexture> value);
91 explicit WebGLGetInfo(PassRefPtr<Uint8Array> value); 91 explicit WebGLGetInfo(PassRefPtr<Uint8Array> value);
92 explicit WebGLGetInfo(PassRefPtr<Uint32Array> value); 92 explicit WebGLGetInfo(PassRefPtr<Uint32Array> value);
93 explicit WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value); 93 explicit WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value);
94 94
95 Type getType() const; 95 Type getType() const;
96 96
97 bool getBool() const; 97 bool getBool() const;
98 const Vector<bool>& getBoolArray() const; 98 const Vector<bool>& getBoolArray() const;
99 float getFloat() const; 99 float getFloat() const;
100 int getInt() const; 100 int getInt() const;
101 const String& getString() const; 101 const String& getString() const;
102 unsigned int getUnsignedInt() const; 102 unsigned getUnsignedInt() const;
103 PassRefPtr<WebGLBuffer> getWebGLBuffer() const; 103 PassRefPtr<WebGLBuffer> getWebGLBuffer() const;
104 PassRefPtr<Float32Array> getWebGLFloatArray() const; 104 PassRefPtr<Float32Array> getWebGLFloatArray() const;
105 PassRefPtr<WebGLFramebuffer> getWebGLFramebuffer() const; 105 PassRefPtr<WebGLFramebuffer> getWebGLFramebuffer() const;
106 PassRefPtr<Int32Array> getWebGLIntArray() const; 106 PassRefPtr<Int32Array> getWebGLIntArray() const;
107 // FIXME: implement WebGLObjectArray 107 // FIXME: implement WebGLObjectArray
108 // PassRefPtr<WebGLObjectArray> getWebGLObjectArray() const; 108 // PassRefPtr<WebGLObjectArray> getWebGLObjectArray() const;
109 PassRefPtr<WebGLProgram> getWebGLProgram() const; 109 PassRefPtr<WebGLProgram> getWebGLProgram() const;
110 PassRefPtr<WebGLRenderbuffer> getWebGLRenderbuffer() const; 110 PassRefPtr<WebGLRenderbuffer> getWebGLRenderbuffer() const;
111 PassRefPtr<WebGLTexture> getWebGLTexture() const; 111 PassRefPtr<WebGLTexture> getWebGLTexture() const;
112 PassRefPtr<Uint8Array> getWebGLUnsignedByteArray() const; 112 PassRefPtr<Uint8Array> getWebGLUnsignedByteArray() const;
113 PassRefPtr<Uint32Array> getWebGLUnsignedIntArray() const; 113 PassRefPtr<Uint32Array> getWebGLUnsignedIntArray() const;
114 PassRefPtr<WebGLVertexArrayObjectOES> getWebGLVertexArrayObjectOES() const; 114 PassRefPtr<WebGLVertexArrayObjectOES> getWebGLVertexArrayObjectOES() const;
115 115
116 private: 116 private:
117 Type m_type; 117 Type m_type;
118 bool m_bool; 118 bool m_bool;
119 Vector<bool> m_boolArray; 119 Vector<bool> m_boolArray;
120 float m_float; 120 float m_float;
121 int m_int; 121 int m_int;
122 String m_string; 122 String m_string;
123 unsigned int m_unsignedInt; 123 unsigned m_unsignedInt;
124 RefPtr<WebGLBuffer> m_webglBuffer; 124 RefPtr<WebGLBuffer> m_webglBuffer;
125 RefPtr<Float32Array> m_webglFloatArray; 125 RefPtr<Float32Array> m_webglFloatArray;
126 RefPtr<WebGLFramebuffer> m_webglFramebuffer; 126 RefPtr<WebGLFramebuffer> m_webglFramebuffer;
127 RefPtr<Int32Array> m_webglIntArray; 127 RefPtr<Int32Array> m_webglIntArray;
128 // FIXME: implement WebGLObjectArray 128 // FIXME: implement WebGLObjectArray
129 // RefPtr<WebGLObjectArray> m_webglObjectArray; 129 // RefPtr<WebGLObjectArray> m_webglObjectArray;
130 RefPtr<WebGLProgram> m_webglProgram; 130 RefPtr<WebGLProgram> m_webglProgram;
131 RefPtr<WebGLRenderbuffer> m_webglRenderbuffer; 131 RefPtr<WebGLRenderbuffer> m_webglRenderbuffer;
132 RefPtr<WebGLTexture> m_webglTexture; 132 RefPtr<WebGLTexture> m_webglTexture;
133 RefPtr<Uint8Array> m_webglUnsignedByteArray; 133 RefPtr<Uint8Array> m_webglUnsignedByteArray;
134 RefPtr<Uint32Array> m_webglUnsignedIntArray; 134 RefPtr<Uint32Array> m_webglUnsignedIntArray;
135 RefPtr<WebGLVertexArrayObjectOES> m_webglVertexArrayObject; 135 RefPtr<WebGLVertexArrayObjectOES> m_webglVertexArrayObject;
136 }; 136 };
137 137
138 } // namespace WebCore 138 } // namespace WebCore
139 139
140 #endif // WebGLGetInfo_h 140 #endif // WebGLGetInfo_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLGetInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698