Home
last modified time | relevance | path

Searched refs:GL_TEXTURE_2D (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/native/opengl/tests/textures/
Dtextures.cpp67 glBindTexture(GL_TEXTURE_2D, 0); in main()
68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in main()
74 glEnable(GL_TEXTURE_2D); in main()
105 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 4, 4, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, t8); in main()
108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 4, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main()
111 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, t16); in main()
[all …]
/frameworks/native/opengl/tests/finish/
Dfinish.cpp69 glBindTexture(GL_TEXTURE_2D, 0); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main()
73 glEnable(GL_TEXTURE_2D); in main()
84 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main()
107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES11RenderEngine.cpp48 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); in GLES11RenderEngine()
49 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in GLES11RenderEngine()
50 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in GLES11RenderEngine()
51 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in GLES11RenderEngine()
52 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in GLES11RenderEngine()
53 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 1, 0, in GLES11RenderEngine()
166 glDisable(GL_TEXTURE_2D); in setupDimLayerBlending()
190 glDisable(GL_TEXTURE_2D); in setupLayerTexturing()
195 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); in setupLayerBlackedOut()
200 glEnable(GL_TEXTURE_2D); in setupLayerBlackedOut()
[all …]
DGLES20RenderEngine.cpp53 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); in GLES20RenderEngine()
54 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in GLES20RenderEngine()
55 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in GLES20RenderEngine()
56 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in GLES20RenderEngine()
57 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in GLES20RenderEngine()
58 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 1, 0, in GLES20RenderEngine()
166 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); in setupLayerBlackedOut()
192 glBindTexture(GL_TEXTURE_2D, tname); in bindImageAsFramebuffer()
193 glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, (GLeglImageOES)image); in bindImageAsFramebuffer()
198 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tname, 0); in bindImageAsFramebuffer()
/frameworks/native/opengl/tests/filter/
Dfilter.cpp79 glBindTexture(GL_TEXTURE_2D, 0); in main()
80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
81 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
82 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
84 glEnable(GL_TEXTURE_2D); in main()
116 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, in main()
120 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main()
124 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main()
128 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE_ALPHA, in main()
132 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main()
[all …]
/frameworks/base/libs/hwui/
DDither.cpp38 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in bindDitherTexture()
39 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in bindDitherTexture()
41 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in bindDitherTexture()
42 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in bindDitherTexture()
47 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, GL_RED); in bindDitherTexture()
58 glTexImage2D(GL_TEXTURE_2D, 0, GL_R16F, DITHER_KERNEL_SIZE, DITHER_KERNEL_SIZE, 0, in bindDitherTexture()
69 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, DITHER_KERNEL_SIZE, DITHER_KERNEL_SIZE, 0, in bindDitherTexture()
DTexture.h38 GLenum renderTarget = GL_TEXTURE_2D) {
43 bool force = false, GLenum renderTarget = GL_TEXTURE_2D);
46 GLenum renderTarget = GL_TEXTURE_2D) {
51 bool force = false, GLenum renderTarget = GL_TEXTURE_2D);
DLayerRenderer.cpp248 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in createRenderLayer()
417 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in copyLayer()
418 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in copyLayer()
420 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in copyLayer()
421 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in copyLayer()
423 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(), in copyLayer()
428 GL_TEXTURE_2D, texture, 0); in copyLayer()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp133 glBindTexture(GL_TEXTURE_2D, texture->name); in initTexture()
137 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, w, h, 0, GL_ALPHA, in initTexture()
141 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture()
145 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture()
149 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGB, in initTexture()
156 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTexture()
157 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in initTexture()
158 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in initTexture()
159 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in initTexture()
160 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in initTexture()
[all …]
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp246 glBindTexture(GL_TEXTURE_2D, 1); in genTextures()
247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
248 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures()
249 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures()
250 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in genTextures()
251 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in genTextures()
258 glBindTexture(GL_TEXTURE_2D, 2); in genTextures()
259 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
260 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures()
261 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures()
[all …]
/frameworks/native/libs/gui/tests/
DMultiTextureConsumer_test.cpp89 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F()
90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &texel); in TEST_F()
91 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in TEST_F()
92 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in TEST_F()
93 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_F()
94 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_F()
97 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F()
98 glEnable(GL_TEXTURE_2D); in TEST_F()
DSurfaceTextureFBO.h35 glBindTexture(GL_TEXTURE_2D, mFboTex); in SetUp()
36 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getSurfaceWidth(), in SetUp()
38 glBindTexture(GL_TEXTURE_2D, 0); in SetUp()
43 GL_TEXTURE_2D, mFboTex, 0); in SetUp()
/frameworks/native/opengl/tests/linetex/
Dlinetex.cpp68 glBindTexture(GL_TEXTURE_2D, 0); in main()
69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main()
76 glEnable(GL_TEXTURE_2D); in main()
95 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_frame.cpp48 texture_target_(GL_TEXTURE_2D), in GLFrame()
112 glGenerateMipmap(GL_TEXTURE_2D); in GenerateMipMap()
121 glTexParameteri(GL_TEXTURE_2D, pname, value); in SetTextureParameter()
134 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, tex_params_[GL_TEXTURE_MAG_FILTER]); in UpdateTexParameters()
135 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, tex_params_[GL_TEXTURE_MIN_FILTER]); in UpdateTexParameters()
136 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, tex_params_[GL_TEXTURE_WRAP_S]); in UpdateTexParameters()
137 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, tex_params_[GL_TEXTURE_WRAP_T]); in UpdateTexParameters()
257 glBindTexture(GL_TEXTURE_2D, texture_id_); in BindTexture()
306 glBindTexture(GL_TEXTURE_2D, texture_id_); in AllocateTexture()
307 glTexImage2D(GL_TEXTURE_2D, in AllocateTexture()
[all …]
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/
DGenImage.java157 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); in setup()
160 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR); in setup()
167 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST); in setup()
170 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR); in setup()
178 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE); in setup()
182 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_REPEAT); in setup()
186 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_MIRRORED_REPEAT); in setup()
195 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE); in setup()
199 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_REPEAT); in setup()
203 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_MIRRORED_REPEAT); in setup()
[all …]
/frameworks/native/opengl/tests/gl2_copyTexImage/
Dgl2_copyTexImage.cpp189 glBindTexture(GL_TEXTURE_2D, gTexture); in setupGraphics()
190 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
191 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics()
192 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics()
193 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in setupGraphics()
194 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in setupGraphics()
197 glBindTexture(GL_TEXTURE_2D, gBufferTexture); in setupGraphics()
198 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
199 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics()
200 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics()
[all …]
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp69 glBindTexture(GL_TEXTURE_2D, 0); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main()
73 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main()
78 glEnable(GL_TEXTURE_2D); in main()
110 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 512, 512, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGLToolbox.java97 GLES20.GL_TEXTURE_2D, in attachTextureToFbo()
129 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
131 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
133 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
135 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
/frameworks/rs/driver/
DrsdFrameBufferObj.cpp79 GL_TEXTURE_2D, mDepthTarget->textureID, 0); in setDepthAttachment()
87 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, 0, 0); in setDepthAttachment()
97 GL_TEXTURE_2D, mColorTargets[i]->textureID, 0); in setColorAttachment()
107 GL_TEXTURE_2D, 0, 0); in setColorAttachment()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLDepthTestActivity.java150 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onDrawFrame()
228 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onSurfaceCreated()
230 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, in onSurfaceCreated()
232 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, in onSurfaceCreated()
236 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, in onSurfaceCreated()
238 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, in onSurfaceCreated()
254 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated()
DGLTextureViewActivity.java200 glBindTexture(GL_TEXTURE_2D, texture); in run()
261 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture()
264 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadTexture()
265 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadTexture()
267 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in loadTexture()
268 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in loadTexture()
272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); in loadTexture()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp108 glEnable(GL_TEXTURE_2D); in init_scene()
130 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
132 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture()
133 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp201 glEnable(GL_TEXTURE_2D); in init_scene()
222 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
223 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
224 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture()
225 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
/frameworks/base/libs/hwui/font/
DCacheTexture.cpp192 glTexImage2D(GL_TEXTURE_2D, 0, mFormat, getWidth(), getHeight(), 0, in allocatePixelBuffer()
196 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filtering); in allocatePixelBuffer()
197 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filtering); in allocatePixelBuffer()
199 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in allocatePixelBuffer()
200 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in allocatePixelBuffer()
/frameworks/base/libs/hwui/renderstate/
DTextureState.cpp56 glBindTexture(GL_TEXTURE_2D, texture); in bindTexture()
62 if (target == GL_TEXTURE_2D) { in bindTexture()

123