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

Side by Side Diff: Source/modules/webgl/WebGL2RenderingContextBase.h

Issue 1300583002: Improve samplerParameter[if] in WebGL2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | Source/modules/webgl/WebGL2RenderingContextBase.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef WebGL2RenderingContextBase_h 5 #ifndef WebGL2RenderingContextBase_h
6 #define WebGL2RenderingContextBase_h 6 #define WebGL2RenderingContextBase_h
7 7
8 #include "modules/webgl/WebGLExtension.h" 8 #include "modules/webgl/WebGLExtension.h"
9 #include "modules/webgl/WebGLRenderingContextBase.h" 9 #include "modules/webgl/WebGLRenderingContextBase.h"
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 enum TexStorageType { 182 enum TexStorageType {
183 TexStorageType2D, 183 TexStorageType2D,
184 TexStorageType3D, 184 TexStorageType3D,
185 }; 185 };
186 bool validateTexStorage(const char*, GLenum, GLsizei, GLenum, GLsizei, GLsiz ei, GLsizei, TexStorageType); 186 bool validateTexStorage(const char*, GLenum, GLsizei, GLenum, GLsizei, GLsiz ei, GLsizei, TexStorageType);
187 bool validateTexSubImage3D(const char*, GLenum target, GLint level, GLint xo ffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth); 187 bool validateTexSubImage3D(const char*, GLenum target, GLint level, GLint xo ffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth);
188 188
189 ScriptValue getInt64Parameter(ScriptState*, GLenum); 189 ScriptValue getInt64Parameter(ScriptState*, GLenum);
190 190
191 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); 191 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool);
192 void samplerParameter(WebGLSampler*, GLenum, GLfloat, GLint, bool);
192 193
193 /* WebGLRenderingContextBase overrides */ 194 /* WebGLRenderingContextBase overrides */
194 unsigned getMaxWebGLLocationLength() const override { return 1024; }; 195 unsigned getMaxWebGLLocationLength() const override { return 1024; };
195 bool validateCapability(const char* functionName, GLenum) override; 196 bool validateCapability(const char* functionName, GLenum) override;
196 bool validateBufferTarget(const char* functionName, GLenum target) override; 197 bool validateBufferTarget(const char* functionName, GLenum target) override;
197 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override; 198 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override;
198 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override; 199 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override;
199 bool validateFramebufferTarget(GLenum target) override; 200 bool validateFramebufferTarget(GLenum target) override;
200 bool validateReadPixelsFormatAndType(GLenum format, GLenum type) override; 201 bool validateReadPixelsFormatAndType(GLenum format, GLenum type) override;
201 DOMArrayBufferView::ViewType readPixelsExpectedArrayBufferViewType(GLenum ty pe) override; 202 DOMArrayBufferView::ViewType readPixelsExpectedArrayBufferViewType(GLenum ty pe) override;
(...skipping 23 matching lines...) Expand all
225 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; 226 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits;
226 }; 227 };
227 228
228 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 229 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
229 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 230 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
230 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 231 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
231 232
232 } // namespace blink 233 } // namespace blink
233 234
234 #endif 235 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webgl/WebGL2RenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698