Home
last modified time | relevance | path

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

12345678910>>...42

/external/chromium_org/gpu/command_buffer/service/
Dtexture_manager_unittest.cc31 static bool IsNPOT(const Texture* texture) { in IsNPOT() argument
32 return texture->npot(); in IsNPOT()
34 static bool IsTextureComplete(const Texture* texture) { in IsTextureComplete() argument
35 return texture->texture_complete(); in IsTextureComplete()
37 static bool IsCubeComplete(const Texture* texture) { in IsCubeComplete() argument
38 return texture->cube_complete(); in IsCubeComplete()
112 scoped_refptr<TextureRef> texture = manager_->GetTexture(kClient1Id); in TEST_F() local
113 ASSERT_TRUE(texture.get() != NULL); in TEST_F()
114 EXPECT_EQ(kService1Id, texture->service_id()); in TEST_F()
115 EXPECT_EQ(kClient1Id, texture->client_id()); in TEST_F()
[all …]
Dmailbox_manager_unittest.cc34 void SetTarget(Texture* texture, GLenum target, GLuint max_level) { in SetTarget() argument
35 texture->SetTarget(NULL, target, max_level); in SetTarget()
39 Texture* texture, in SetLevelInfo() argument
50 texture->SetLevelInfo(NULL, in SetLevelInfo()
63 GLenum SetParameter(Texture* texture, GLenum pname, GLint param) { in SetParameter() argument
64 return texture->SetParameteri(feature_info_, pname, param); in SetParameter()
67 void DestroyTexture(Texture* texture) { in DestroyTexture() argument
68 delete texture; in DestroyTexture()
81 Texture* texture = CreateTexture(); in TEST_F() local
85 manager_->ProduceTexture(0, name, texture); in TEST_F()
[all …]
Dtexture_definition.cc319 Texture* texture, in TextureDefinition() argument
325 texture->service_id())), in TextureDefinition()
326 min_filter_(texture->min_filter()), in TextureDefinition()
327 mag_filter_(texture->mag_filter()), in TextureDefinition()
328 wrap_s_(texture->wrap_s()), in TextureDefinition()
329 wrap_t_(texture->wrap_t()), in TextureDefinition()
330 usage_(texture->usage()), in TextureDefinition()
331 immutable_(texture->IsImmutable()) { in TextureDefinition()
334 DCHECK(!texture->level_infos_.empty()); in TextureDefinition()
335 DCHECK(!texture->level_infos_[0].empty()); in TextureDefinition()
[all …]
Dmailbox_manager.cc41 Texture* texture = sync_->CreateTextureFromMailbox(target, mailbox); in ConsumeTexture() local
42 if (texture) { in ConsumeTexture()
43 InsertTexture(target_name, texture); in ConsumeTexture()
44 DCHECK_EQ(0U, texture->refs_.size()); in ConsumeTexture()
46 return texture; in ConsumeTexture()
54 Texture* texture) { in ProduceTexture() argument
58 if (it->second->first == texture) in ProduceTexture()
64 InsertTexture(target_name, texture); in ProduceTexture()
67 void MailboxManager::InsertTexture(TargetName target_name, Texture* texture) { in InsertTexture() argument
68 texture->SetMailboxManager(this); in InsertTexture()
[all …]
Dmailbox_synchronizer.cc129 void MailboxSynchronizer::TextureDeleted(Texture* texture) { in TextureDeleted() argument
131 TextureMap::iterator it = textures_.find(texture); in TextureDeleted()
146 Texture* texture = texture_it->second->first; in PushTextureUpdates() local
150 bool needs_mips = texture->min_filter() != GL_NEAREST && in PushTextureUpdates()
151 texture->min_filter() != GL_LINEAR; in PushTextureUpdates()
155 TextureMap::iterator it = textures_.find(texture); in PushTextureUpdates()
166 UpdateTextureLocked(texture, texture_version); in PushTextureUpdates()
170 TextureDefinition(target_name.target, texture, 1, NULL))); in PushTextureUpdates()
174 textures_.insert(std::make_pair(texture, TextureVersion(group))); in PushTextureUpdates()
181 void MailboxSynchronizer::UpdateTextureLocked(Texture* texture, in UpdateTextureLocked() argument
[all …]
/external/chromium_org/cc/resources/
Dscoped_resource_unittest.cc23 scoped_ptr<ScopedResource> texture = in TEST() local
27 EXPECT_EQ(0u, texture->id()); in TEST()
30 EXPECT_EQ(gfx::Size(), texture->size()); in TEST()
31 EXPECT_EQ(0u, texture->bytes()); in TEST()
41 scoped_ptr<ScopedResource> texture = in TEST() local
43 texture->Allocate(gfx::Size(30, 30), in TEST()
49 EXPECT_EQ(expected_bytes, texture->bytes()); in TEST()
51 EXPECT_LT(0u, texture->id()); in TEST()
52 EXPECT_EQ(static_cast<unsigned>(RGBA_8888), texture->format()); in TEST()
53 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/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/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(NULL != texture); in reset()
[all …]
/external/jmonkeyengine/engine/src/niftygui/com/jme3/niftygui/
DRenderImageJme.java36 import com.jme3.texture.Image;
37 import com.jme3.texture.Texture.MagFilter;
38 import com.jme3.texture.Texture.MinFilter;
39 import com.jme3.texture.Texture2D;
44 private Texture2D texture; field in RenderImageJme
56 texture = (Texture2D) display.getAssetManager().loadTexture(key); in RenderImageJme()
57 texture.setMagFilter(linear ? MagFilter.Bilinear : MagFilter.Nearest); in RenderImageJme()
58 texture.setMinFilter(linear ? MinFilter.BilinearNoMipMaps : MinFilter.NearestNoMipMaps); in RenderImageJme()
59 image = texture.getImage(); in RenderImageJme()
65 public RenderImageJme(Texture2D texture){ in RenderImageJme() 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/gpu/GLES2/extensions/CHROMIUM/
DCHROMIUM_texture_mailbox.txt19 This extension defines a way of sharing texture image data between texture
21 texture resources. Three new functions are exported. glGenMailboxCHROMIUM
22 generates a name that can be used to identify texture image data outside
23 the scope of a context group. glProduceMailboxCHROMIUM associates a texture
25 texture object referenced by a mailbox name to a texture name.
41 Associates the currently bound texture object with the mailbox name. A
42 given texture object can be associated with several mailbox names. If a
43 mailbox name was previously associated with a texture object, that
44 previous association is broken. The currently bound texture object is not
50 The mailbox does not keep a reference to the texture object. When the
[all …]
/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/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/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/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(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/jmonkeyengine/engine/src/core/com/jme3/material/
DMatParamTexture.java9 import com.jme3.texture.Texture;
14 private Texture texture; field in MatParamTexture
17 public MatParamTexture(VarType type, String name, Texture texture, int unit) { in MatParamTexture() argument
18 super(type, name, texture, null); in MatParamTexture()
19 this.texture = texture; in MatParamTexture()
27 return texture; in getTextureValue()
32 this.texture = value; in setTextureValue()
57 oc.write(texture, "texture", null); in write()
65 texture = (Texture) ic.readSavable("texture", null); in read()
/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/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/skia/src/effects/
DSkMagnifierImageFilter.cpp27 static GrEffectRef* Create(GrTexture* texture, in Create() argument
34 AutoEffectUnref effect(SkNEW_ARGS(GrMagnifierEffect, (texture, in Create()
61 GrMagnifierEffect(GrTexture* texture, in GrMagnifierEffect() argument
68 : GrSingleTextureEffect(texture, MakeDivByTextureWHMatrix(texture)) in GrMagnifierEffect()
188 GrTexture* texture = textures[0]; in TestCreate() local
199 texture, in TestCreate()
200 (float) width / texture->width(), in TestCreate()
201 (float) height / texture->height(), in TestCreate()
202 texture->width() / (float) x, in TestCreate()
203 texture->height() / (float) y, in TestCreate()
[all …]
/external/chromium_org/third_party/skia/src/effects/
DSkMagnifierImageFilter.cpp27 static GrEffectRef* Create(GrTexture* texture, in Create() argument
34 AutoEffectUnref effect(SkNEW_ARGS(GrMagnifierEffect, (texture, in Create()
61 GrMagnifierEffect(GrTexture* texture, in GrMagnifierEffect() argument
68 : GrSingleTextureEffect(texture, MakeDivByTextureWHMatrix(texture)) in GrMagnifierEffect()
188 GrTexture* texture = textures[0]; in TestCreate() local
199 texture, in TestCreate()
200 (float) width / texture->width(), in TestCreate()
201 (float) height / texture->height(), in TestCreate()
202 texture->width() / (float) x, in TestCreate()
203 texture->height() / (float) y, in TestCreate()
[all …]
/external/chromium_org/third_party/mesa/src/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 …]
/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 …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/
DTextureBlenderDDS.java12 import com.jme3.texture.Image;
13 import com.jme3.texture.Image.Format;
14 import com.jme3.texture.Texture;
15 import com.jme3.texture.Texture2D;
16 import com.jme3.texture.Texture3D;
32 …public Texture blend(float[] materialColor, Texture texture, float[] color, float affectFactor, in… in blend() argument
33 Format format = texture.getImage().getFormat(); in blend()
34 ByteBuffer data = texture.getImage().getData(0); in blend()
37 int width = texture.getImage().getWidth(); in blend()
38 int height = texture.getImage().getHeight(); in blend()
[all …]
/external/chromium_org/cc/test/
Dordered_texture_map.cc17 scoped_refptr<TestTexture> texture) { in Append() argument
18 DCHECK(texture.get()); in Append()
21 textures_[id] = texture; in Append()
26 scoped_refptr<TestTexture> texture) { in Replace() argument
27 DCHECK(texture.get()); in Replace()
30 textures_[id] = texture; in Replace()
52 scoped_refptr<TestTexture> texture = textures_[id]; in TextureForId() local
53 DCHECK(texture.get()); in TextureForId()
54 return texture; in TextureForId()

12345678910>>...42