Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 25 of 1040) sorted by relevance

12345678910>>...42

/external/chromium_org/gpu/command_buffer/service/
Dtexture_manager_unittest.cc35 static bool IsNPOT(const Texture* texture) { in IsNPOT() argument
36 return texture->npot(); in IsNPOT()
38 static bool IsTextureComplete(const Texture* texture) { in IsTextureComplete() argument
39 return texture->texture_complete(); in IsTextureComplete()
41 static bool IsCubeComplete(const Texture* texture) { in IsCubeComplete() argument
42 return texture->cube_complete(); in IsCubeComplete()
113 scoped_refptr<TextureRef> texture = manager_->GetTexture(kClient1Id); in TEST_F() local
114 ASSERT_TRUE(texture.get() != NULL); in TEST_F()
115 EXPECT_EQ(kService1Id, texture->service_id()); in TEST_F()
116 EXPECT_EQ(kClient1Id, texture->client_id()); in TEST_F()
[all …]
Dmailbox_manager_unittest.cc51 void SetTarget(Texture* texture, GLenum target, GLuint max_level) { in SetTarget() argument
52 texture->SetTarget(NULL, target, max_level); in SetTarget()
56 Texture* texture, in SetLevelInfo() argument
67 texture->SetLevelInfo(NULL, in SetLevelInfo()
80 GLenum SetParameter(Texture* texture, GLenum pname, GLint param) { in SetParameter() argument
81 return texture->SetParameteri(feature_info_.get(), pname, param); in SetParameter()
84 void DestroyTexture(Texture* texture) { in DestroyTexture() argument
85 delete texture; in DestroyTexture()
99 Texture* texture = CreateTexture(); in TEST_F() local
102 manager_->ProduceTexture(0, name, texture); in TEST_F()
[all …]
Dtexture_definition.cc288 Texture* texture, in TextureDefinition() argument
295 : NativeImageBuffer::Create(texture->service_id())), in TextureDefinition()
296 min_filter_(texture->min_filter()), in TextureDefinition()
297 mag_filter_(texture->mag_filter()), in TextureDefinition()
298 wrap_s_(texture->wrap_s()), in TextureDefinition()
299 wrap_t_(texture->wrap_t()), in TextureDefinition()
300 usage_(texture->usage()), in TextureDefinition()
301 immutable_(texture->IsImmutable()) { in TextureDefinition()
303 DCHECK(!texture->level_infos_.empty()); in TextureDefinition()
304 DCHECK(!texture->level_infos_[0].empty()); in TextureDefinition()
[all …]
Dmailbox_manager.cc37 Texture* texture = sync_->CreateTextureFromMailbox(target, mailbox); in ConsumeTexture() local
38 if (texture) { in ConsumeTexture()
39 InsertTexture(target_name, texture); in ConsumeTexture()
40 DCHECK_EQ(0U, texture->refs_.size()); in ConsumeTexture()
42 return texture; in ConsumeTexture()
50 Texture* texture) { in ProduceTexture() argument
54 if (it->second->first == texture) in ProduceTexture()
60 InsertTexture(target_name, texture); in ProduceTexture()
63 void MailboxManager::InsertTexture(TargetName target_name, Texture* texture) { in InsertTexture() argument
64 texture->SetMailboxManager(this); in InsertTexture()
[all …]
Dgles2_cmd_decoder_unittest_async_pixel.cc67 Texture* texture = texture_ref->texture(); in TEST_P() local
134 EXPECT_TRUE(texture->IsImmutable()); in TEST_P()
136 EXPECT_TRUE(texture->SafeToRenderFrom()); in TEST_P()
138 EXPECT_FALSE(texture->GetLevelSize(GL_TEXTURE_2D, 0, &width, &height)); in TEST_P()
150 EXPECT_TRUE(texture->IsImmutable()); in TEST_P()
151 EXPECT_TRUE(texture->SafeToRenderFrom()); in TEST_P()
165 EXPECT_TRUE(texture->SafeToRenderFrom()); in TEST_P()
167 EXPECT_TRUE(texture->GetLevelSize(GL_TEXTURE_2D, 0, &width, &height)); in TEST_P()
177 texture->SetImmutable(false); in TEST_P()
192 EXPECT_TRUE(texture->IsImmutable()); in TEST_P()
[all …]
/external/chromium_org/third_party/skia/src/gpu/
DGrTextureAccess.cpp19 GrTextureAccess::GrTextureAccess(GrTexture* texture, const GrTextureParams& params) { in GrTextureAccess() argument
20 this->reset(texture, params); in GrTextureAccess()
23 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
26 this->reset(texture, filterMode, tileXAndY); in GrTextureAccess()
29 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
32 this->reset(texture, swizzle, params); in GrTextureAccess()
35 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
39 this->reset(texture, swizzle, filterMode, tileXAndY); in GrTextureAccess()
42 void GrTextureAccess::reset(GrTexture* texture, in reset() argument
45 SkASSERT(texture); in reset()
[all …]
/external/skia/src/gpu/
DGrTextureAccess.cpp19 GrTextureAccess::GrTextureAccess(GrTexture* texture, const GrTextureParams& params) { in GrTextureAccess() argument
20 this->reset(texture, params); in GrTextureAccess()
23 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
26 this->reset(texture, filterMode, tileXAndY); in GrTextureAccess()
29 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
32 this->reset(texture, swizzle, params); in GrTextureAccess()
35 GrTextureAccess::GrTextureAccess(GrTexture* texture, in GrTextureAccess() argument
39 this->reset(texture, swizzle, filterMode, tileXAndY); in GrTextureAccess()
42 void GrTextureAccess::reset(GrTexture* texture, in reset() argument
45 SkASSERT(NULL != texture); in reset()
[all …]
/external/chromium_org/cc/resources/
Dscoped_resource_unittest.cc32 scoped_ptr<ScopedResource> texture = in TEST() local
36 EXPECT_EQ(0u, texture->id()); in TEST()
39 EXPECT_EQ(gfx::Size(), texture->size()); in TEST()
40 EXPECT_EQ(0u, texture->bytes()); in TEST()
58 scoped_ptr<ScopedResource> texture = in TEST() local
60 texture->Allocate( in TEST()
65 EXPECT_EQ(expected_bytes, texture->bytes()); in TEST()
67 EXPECT_LT(0u, texture->id()); in TEST()
68 EXPECT_EQ(static_cast<unsigned>(RGBA_8888), texture->format()); in TEST()
69 EXPECT_EQ(gfx::Size(30, 30), texture->size()); in TEST()
[all …]
Dprioritized_resource_manager.cc69 PrioritizedResource* texture = (*it); in PrioritizeTextures() local
70 sorted_textures.push_back(texture); in PrioritizeTextures()
72 texture->request_priority(), in PrioritizeTextures()
74 memory_visible_bytes_ += texture->bytes(); in PrioritizeTextures()
76 texture->request_priority(), in PrioritizeTextures()
78 memory_visible_and_nearby_bytes_ += texture->bytes(); in PrioritizeTextures()
114 PrioritizedResource* texture = (*it); in PrioritizeTextures() local
115 if (!PriorityCalculator::priority_is_higher(texture->request_priority(), in PrioritizeTextures()
117 texture->have_backing_texture()) in PrioritizeTextures()
118 texture->Unlink(); in PrioritizeTextures()
[all …]
/external/chromium_org/gpu/GLES2/extensions/CHROMIUM/
DCHROMIUM_texture_mailbox.txt19 This extension defines a way of sharing texture image data between texture
21 texture resources. Five new functions are exported. glGenMailboxCHROMIUM
22 generates a name that can be used to identify texture image data outside
24 glProduceTextureDirectCHROMIUM associate a texture object with a global
26 associate the texture object referenced by a mailbox name to a texture name.
42 Associates the currently bound texture object with the mailbox name. A
43 given texture object can be associated with several mailbox names. If a
44 mailbox name was previously associated with a texture object, that
45 previous association is broken. The currently bound texture object is not
51 The mailbox does not keep a reference to the texture object. When the
[all …]
/external/deqp/modules/internal/
DditImageIOTests.cpp54 tcu::TextureLevel texture; in iterate() local
55 tcu::ImageIO::loadImage(texture, m_testCtx.getArchive(), m_filename.c_str()); in iterate()
57 …age << "Loaded " << texture.getWidth() << "x" << texture.getHeight() << "x" << texture.getDepth() … in iterate()
60 …TCU_CHECK(texture.getAccess().getRowPitch() == texture.getWidth()*texture.getFormat().getPixelSize… in iterate()
61 …TCU_CHECK(texture.getAccess().getSlicePitch() == texture.getAccess().getRowPitch()*texture.getAcce… in iterate()
63 const int imageSize = texture.getAccess().getSlicePitch()*texture.getDepth(); in iterate()
64 const deUint32 hash = deMemoryHash(texture.getAccess().getDataPtr(), imageSize); in iterate()
69 m_testCtx.getLog() << TestLog::Image("Image", "Loaded image", texture.getAccess()); in iterate()
/external/chromium_org/third_party/skia/include/gpu/
DGrCoordTransform.h49 GrCoordTransform(GrCoordSet sourceCoords, const GrTexture* texture) { in GrCoordTransform() argument
51 this->reset(sourceCoords, texture); in GrCoordTransform()
59 GrCoordTransform(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
61 this->reset(sourceCoords, m, texture);
64 void reset(GrCoordSet sourceCoords, const GrTexture* texture) { in reset() argument
66 SkASSERT(texture); in reset()
67 this->reset(sourceCoords, MakeDivByTextureWHMatrix(texture), texture); in reset()
70 void reset(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
74 fReverseY = texture && kBottomLeft_GrSurfaceOrigin == texture->origin();
106 static inline SkMatrix MakeDivByTextureWHMatrix(const GrTexture* texture) { in MakeDivByTextureWHMatrix() argument
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DTextureLibrary.java73 Texture texture = getTextureByResource(resourceID); in allocateTexture() local
74 if (texture == null) { in allocateTexture()
75 texture = addTexture(resourceID, -1, 0, 0); in allocateTexture()
78 return texture; in allocateTexture()
83 Texture texture = allocateTexture(resourceID); in loadTexture() local
84 texture = loadBitmap(context, gl, texture); in loadTexture()
85 return texture; in loadTexture()
127 protected Texture loadBitmap(Context context, GL10 gl, Texture texture) { in loadBitmap() argument
130 assert texture != null; in loadBitmap()
131 if (texture.loaded == false && texture.resource != -1) { in loadBitmap()
[all …]
/external/chromium_org/content/browser/compositor/
Dbuffer_queue.cc43 if (!current_surface_.texture) { in BindFramebuffer()
48 current_surface_.texture, in BindFramebuffer()
53 void BufferQueue::CopyBufferDamage(int texture, in CopyBufferDamage() argument
58 texture, in CopyBufferDamage()
84 CopyBufferDamage(current_surface_.texture, in SwapBuffers()
85 in_flight_surfaces_.back().texture, in SwapBuffers()
92 current_surface_.texture = 0; in SwapBuffers()
97 DCHECK(!current_surface_.texture); in Reshape()
130 if (surface->texture) { in FreeSurface()
132 gl->BindTexture(GL_TEXTURE_2D, surface->texture); in FreeSurface()
[all …]
/external/chromium_org/third_party/angle/samples/angle/sample_util/
Dtexture_utils.cpp16 GLuint texture; in CreateSimpleTexture2D() local
17 glGenTextures(1, &texture); in CreateSimpleTexture2D()
20 glBindTexture(GL_TEXTURE_2D, texture); in CreateSimpleTexture2D()
38 return texture; in CreateSimpleTexture2D()
44 GLuint texture; in CreateSimpleTextureCubemap() local
45 glGenTextures(1, &texture); in CreateSimpleTextureCubemap()
48 glBindTexture(GL_TEXTURE_CUBE_MAP, texture); in CreateSimpleTextureCubemap()
76 return texture; in CreateSimpleTextureCubemap()
112 GLuint texture; in CreateMipMappedTexture2D() local
113 glGenTextures(1, &texture); in CreateMipMappedTexture2D()
[all …]
/external/chromium_org/third_party/skia/src/gpu/effects/
DGrSingleTextureEffect.cpp10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
13 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
14 , fTextureAccess(texture) { in GrSingleTextureEffect()
19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
23 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
24 , fTextureAccess(texture, filterMode) { in GrSingleTextureEffect()
29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
33 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
34 , fTextureAccess(texture, params) { in GrSingleTextureEffect()
/external/skia/src/gpu/effects/
DGrSingleTextureEffect.cpp10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
13 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
14 , fTextureAccess(texture) { in GrSingleTextureEffect()
19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
23 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
24 , fTextureAccess(texture, filterMode) { in GrSingleTextureEffect()
29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, in GrSingleTextureEffect() argument
33 : fCoordTransform(coordSet, m, texture) in GrSingleTextureEffect()
34 , fTextureAccess(texture, params) { in GrSingleTextureEffect()
/external/skia/include/gpu/
DGrCoordTransform.h49 GrCoordTransform(GrCoordSet sourceCoords, const GrTexture* texture) { in GrCoordTransform() argument
51 this->reset(sourceCoords, texture); in GrCoordTransform()
59 GrCoordTransform(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
61 this->reset(sourceCoords, m, texture);
64 void reset(GrCoordSet sourceCoords, const GrTexture* texture) { in reset() argument
66 SkASSERT(NULL != texture); in reset()
67 this->reset(sourceCoords, GrEffect::MakeDivByTextureWHMatrix(texture), texture); in reset()
70 void reset(GrCoordSet sourceCoords, const SkMatrix& m, const GrTexture* texture = NULL) {
74 fReverseY = NULL != texture && kBottomLeft_GrSurfaceOrigin == texture->origin();
/external/deqp/modules/gles3/functional/
Des3fNegativeTextureApiTests.cpp116 GLuint texture[2]; in init()
117 glGenTextures(2, texture); in init()
127 glBindTexture(GL_TEXTURE_2D, texture[0]); in init()
129 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]); in init()
131 glBindTexture(GL_TEXTURE_3D, texture[0]); in init()
133 glBindTexture(GL_TEXTURE_2D_ARRAY, texture[0]); in init()
136 glBindTexture(GL_TEXTURE_CUBE_MAP, texture[1]); in init()
138 glBindTexture(GL_TEXTURE_2D, texture[1]); in init()
140 glBindTexture(GL_TEXTURE_3D, texture[1]); in init()
142 glBindTexture(GL_TEXTURE_2D_ARRAY, texture[1]); in init()
[all …]
/external/deqp/doc/testspecs/GLES31/
Dfunctional.texture_buffers.txt19 GLES3.1 texture buffer object tests.
26 - As vertex texture
27 - As fragment texture
32 - Including larger than max texture size
35 + Different texture buffer sizes
49 Rendering tests create a texture buffer object and render to the default
50 framebuffer using the texture buffer as different data sources. The texture
51 buffer object is used as vertex array, index array, vertex texture and fragment
52 texture. Rendering using the texture buffer object simultaneously in different
55 Modifying tests create a texture buffer object, modify it and render it to the
[all …]
/external/chromium_org/third_party/skia/gm/
Dyuvtorgbeffect.cpp86 GrTexture* texture[3]; in onDraw() local
87 texture[0] = GrLockAndRefCachedBitmapTexture(context, fBmp[0], NULL); in onDraw()
88 texture[1] = GrLockAndRefCachedBitmapTexture(context, fBmp[1], NULL); in onDraw()
89 texture[2] = GrLockAndRefCachedBitmapTexture(context, fBmp[2], NULL); in onDraw()
90 if ((NULL == texture[0]) || (NULL == texture[1]) || (NULL == texture[2])) { in onDraw()
111 GrYUVtoRGBEffect::Create(texture[indices[i][0]], in onDraw()
112 texture[indices[i][1]], in onDraw()
113 texture[indices[i][2]], in onDraw()
128 GrUnlockAndUnrefCachedBitmapTexture(texture[0]); in onDraw()
129 GrUnlockAndUnrefCachedBitmapTexture(texture[1]); in onDraw()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_sampler.c39 const struct pipe_resource *texture, in default_template() argument
50 view->u.tex.last_level = texture->last_level; in default_template()
52 view->u.tex.last_layer = texture->target == PIPE_TEXTURE_3D ? in default_template()
53 texture->depth0 - 1 : texture->array_size - 1; in default_template()
89 const struct pipe_resource *texture, in u_sampler_view_default_template() argument
94 texture, in u_sampler_view_default_template()
101 const struct pipe_resource *texture, in u_sampler_view_default_dx9_template() argument
106 texture, in u_sampler_view_default_dx9_template()
/external/mesa3d/src/gallium/auxiliary/util/
Du_sampler.c39 const struct pipe_resource *texture, in default_template() argument
50 view->u.tex.last_level = texture->last_level; in default_template()
52 view->u.tex.last_layer = texture->target == PIPE_TEXTURE_3D ? in default_template()
53 texture->depth0 - 1 : texture->array_size - 1; in default_template()
89 const struct pipe_resource *texture, in u_sampler_view_default_template() argument
94 texture, in u_sampler_view_default_template()
101 const struct pipe_resource *texture, in u_sampler_view_default_dx9_template() argument
106 texture, in u_sampler_view_default_dx9_template()
/external/deqp/doc/testspecs/GLES3/
Dfunctional.texture.format.txt22 + dEQP-GLES3.functional.texture.format.*
25 + Unsized color texture formats:
30 + All sized color texture formats
31 + All sized depth and stencil texture formats
32 + sRGB texture formats
33 + Following compressed texture formats:
37 + Power-of-two and non-power-of-two texture sizes
41 - Single texture, unit 0
42 - Named texture object
50 + Other texture wrap and filtering modes
[all …]
/external/mesa3d/src/gallium/docs/source/cso/
Dsampler.rst7 this state controls an individual texture unit's texel-sampling settings.
25 * ``PIPE_TEX_WRAP_CLAMP_TO_EDGE``: Clamp coord to edge of texture, the border
27 * ``PIPE_TEX_WRAP_CLAMP_TO_BORDER``: Clamp coord to border of texture, the
30 scaling to the texture size. This corresponds to the legacy OpenGL GL_CLAMP
31 texture wrap mode. Historically, this mode hasn't acted consistantly across
36 is odd, the coord becomes (1 - coord). Then, normal texture REPEAT is
52 The texture image filter modes are:
54 * ``PIPE_TEX_FILTER_NEAREST``: One texel is fetched from the texture image
55 at the texture coordinate.
57 texture dimensions; 1D/2D/3D) are fetched from the texture image and
[all …]

12345678910>>...42