Searched defs:sampler (Results 1 - 25 of 27) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DTexShader.cpp48 m_samplerLocation = context->getUniformLocation(program, "sampler");
61 void TexShader::use(const AffineTransform& transform, const AffineTransform& texTransform, int sampler, float alpha) argument
72 m_context->uniform1i(m_samplerLocation, sampler);
/external/skia/src/gpu/
H A DSkGr.cpp61 const GrSamplerState* sampler,
85 if (ctx->supportsIndex8PixelConfig(sampler,
97 return ctx->createAndLockTexture(key, sampler, desc, storage.get(),
117 return ctx->createAndLockTexture(key, sampler, desc,
59 sk_gr_create_bitmap_texture(GrContext* ctx, GrContext::TextureKey key, const GrSamplerState* sampler, const SkBitmap& origBitmap) argument
H A DGrDrawState.h31 * lookups are specified by a texture a sampler (setSamplerState). Texture
199 * Returns the current sampler for a stage.
207 * Writable pointer to a stage's sampler.
209 GrSamplerState* sampler(int stage) { function in struct:GrDrawState
H A DGrContext.cpp162 const GrSamplerState* sampler,
184 bool tiled = NULL != sampler &&
185 ((sampler->getWrapX() != GrSamplerState::kClamp_WrapMode) ||
186 (sampler->getWrapY() != GrSamplerState::kClamp_WrapMode));
190 if (GrSamplerState::kNearest_Filter != sampler->getFilter()) {
227 const GrSamplerState* sampler) {
229 gen_texture_key_values(fGpu, sampler, key, width, height, 0, false, v);
238 const GrSamplerState* sampler) const {
240 gen_texture_key_values(fGpu, sampler, key, width, height, 0, false, v);
302 const GrSamplerState* sampler,
161 gen_texture_key_values(const GrGpu* gpu, const GrSamplerState* sampler, GrContext::TextureKey clientKey, int width, int height, int sampleCnt, bool scratch, uint32_t v[4]) argument
223 findAndLockTexture( TextureKey key, int width, int height, const GrSamplerState* sampler) argument
300 createAndLockTexture( TextureKey key, const GrSamplerState* sampler, const GrTextureDesc& desc, void* srcData, size_t rowBytes) argument
546 supportsIndex8PixelConfig(const GrSamplerState* sampler, int width, int height) const argument
[all...]
H A DSkGpuDevice.cpp62 const GrSamplerState* sampler,
65 *texture = this->set(device, bitmap, sampler);
73 const GrSamplerState* sampler) {
84 fTex = device->lockCachedTexture(bitmap, sampler);
522 GrSamplerState* sampler = grPaint->textureSampler(kShaderTextureIdx); local
523 sampler->setSampleMode(sampleMode);
525 sampler->setFilter(GrSamplerState::kBilinear_Filter);
527 sampler->setFilter(GrSamplerState::kNearest_Filter);
529 sampler->setWrapX(sk_tile_mode_to_grwrap(tileModes[0]));
530 sampler
60 SkAutoCachedTexture(SkGpuDevice* device, const SkBitmap& bitmap, const GrSamplerState* sampler, GrTexture** texture) argument
71 set(SkGpuDevice* device, const SkBitmap& bitmap, const GrSamplerState* sampler) argument
1250 shouldTileBitmap(const SkBitmap& bitmap, const GrSamplerState& sampler, const SkIRect* srcRectPtr, int* tileSize) const argument
1351 GrSamplerState* sampler = grPaint.textureSampler(kBitmapTextureIdx); local
1438 GrSamplerState* sampler = grPaint->textureSampler(kBitmapTextureIdx); local
1508 GrSamplerState* sampler = grPaint.textureSampler(kBitmapTextureIdx); local
1837 lockCachedTexture(const SkBitmap& bitmap, const GrSamplerState* sampler, TexType type) argument
[all...]
/external/webkit/Source/JavaScriptCore/interpreter/
H A DInterpreter.h108 SamplingTool* sampler() { return m_sampler.get(); } function in class:JSC::Interpreter
/external/mesa3d/src/glsl/
H A Dopt_function_inlining.cpp40 ir_variable *sampler,
147 /* For samplers, we want the inlined sampler references
148 * referencing the passed in sampler variable, since that
150 * a sampler wouldn't. Fix it up below.
191 /* If any samplers were passed in, replace any deref of the sampler
192 * with a deref of the sampler argument.
323 * Replaces references to the "sampler" variable with a clone of "deref."
328 * also appear in the sampler field of an ir_tex instruction.
333 ir_sampler_replacement_visitor(ir_variable *sampler, ir_dereference *deref) argument
335 this->sampler
351 ir_variable *sampler; member in class:ir_sampler_replacement_visitor
417 do_sampler_replacement(exec_list *instructions, ir_variable *sampler, ir_dereference *deref) argument
[all...]
H A Dir.cpp1089 ir_texture::set_sampler(ir_dereference *sampler) argument
1091 assert(sampler != NULL);
1092 this->sampler = sampler;
1094 switch (sampler->type->sampler_type) {
H A Dir_reader.cpp1028 // Read sampler (must be a deref)
1030 ir_dereference *sampler = read_dereference(st, sampler_expr); local
1031 if (sampler == NULL) {
1032 ir_read_error(st, NULL, "when reading sampler in (%s ...)", tag->value());
1035 tex->set_sampler(sampler);
H A Dir_to_llvm.cpp81 llvm::Value * tex2D(llvm::IRBuilder<> & builder, llvm::Value * in1, const unsigned sampler,
83 llvm::Value * texCube(llvm::IRBuilder<> & builder, llvm::Value * in1, const unsigned sampler,
932 ir_variable * sampler = NULL; local
933 if(ir_dereference_variable* deref = ir->sampler->as_dereference_variable())
934 sampler = deref->variable_referenced();
935 else if(ir_dereference_array* deref = ir->sampler->as_dereference_array())
942 else if(ir->sampler->as_dereference())
945 ir_dereference_record* deref = (ir_dereference_record*)ir->sampler;
952 assert(sampler->location >= 0 && sampler
[all...]
H A Dir.h1168 * (tex (sampler) (coordinate) (0 0 0) (1) ( ))
1169 * (txb (sampler) (coordinate) (0 0 0) (1) ( ) (bias))
1170 * (txl (sampler) (coordinate) (0 0 0) (1) ( ) (lod))
1171 * (txd (sampler) (coordinate) (0 0 0) (1) ( ) (dPdx dPdy))
1172 * (txf (sampler) (coordinate) (0 0 0) (lod))
1198 /** Set the sampler and infer the type. */
1199 void set_sampler(ir_dereference *sampler);
1209 ir_dereference *sampler; member in class:ir_texture
/external/mesa3d/src/pixelflinger2/
H A Dllvm_texture.cpp274 Value * tex2D(IRBuilder<> & builder, Value * in1, const unsigned sampler, argument
290 sampler * 2);
293 sampler * 2 + 1);
304 Value * x = texcoordWrap(builder, gglCtx->textureState.textures[sampler].wrapS,
306 Value * y = texcoordWrap(builder, gglCtx->textureState.textures[sampler].wrapT,
318 textureData = builder.CreateConstInBoundsGEP1_32(textureData, sampler);
321 if (0 == gglCtx->textureState.textures[sampler].minFilter &&
322 0 == gglCtx->textureState.textures[sampler].magFilter) { // GL_NEAREST
324 gglCtx->textureState.textures[sampler].format/*, dstDesc*/);
326 } else if (1 == gglCtx->textureState.textures[sampler]
364 texCube(IRBuilder< & builder, Value * in1, const unsigned sampler, const GGLState * gglCtx) argument
[all...]
H A Dtexture.cpp139 static void tex2d(unsigned sample[4], const float tex_coord[4], const unsigned sampler) argument
141 const unsigned * data = (const unsigned *)textureGGLContext->textureState.textureData[sampler];
142 const unsigned width = textureGGLContext->textureState.textureDimensions[sampler * 2];
143 const unsigned height = textureGGLContext->textureState.textureDimensions[sampler * 2 + 1];
193 void texcube(unsigned sample[4], const float tex_coord[4], const unsigned sampler) argument
250 const unsigned * data = (const unsigned *)textureGGLContext->textureState.textureData[sampler];
251 const unsigned width = textureGGLContext->textureState.textureDimensions[sampler * 2];
252 const unsigned height = textureGGLContext->textureState.textureDimensions[sampler * 2 + 1];
389 static void SetSampler(GGLInterface * iface, const unsigned sampler, GGLTexture * texture) argument
391 assert(GGL_MAXCOMBINEDTEXTUREIMAGEUNITS > sampler);
[all...]
/external/v8/src/
H A Dcpu-profiler.cc223 // sampler writes w/o any sync to the queue, so if the processor
508 Sampler* sampler = reinterpret_cast<Sampler*>(isolate->logger()->ticker_); local
509 if (!sampler->IsActive()) {
510 sampler->Start();
513 sampler->IncreaseProfilingDepth();
549 Sampler* sampler = reinterpret_cast<Sampler*>(logger->ticker_); local
550 sampler->DecreaseProfilingDepth();
552 sampler->Stop();
H A Dplatform-cygwin.cc600 // On Cygwin we use the same sampler implementation as on win32.
606 // going to use it in the sampler thread. Using GetThreadHandle() will
637 static void AddActiveSampler(Sampler* sampler) { argument
639 SamplerRegistry::AddActiveSampler(sampler);
641 instance_ = new SamplerThread(sampler->interval());
644 ASSERT(instance_->interval_ == sampler->interval());
648 static void RemoveActiveSampler(Sampler* sampler) { argument
650 SamplerRegistry::RemoveActiveSampler(sampler);
685 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread) { argument
686 if (!sampler
693 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
698 SampleContext(Sampler* sampler) argument
[all...]
H A Dplatform-freebsd.cc691 Sampler* sampler = isolate->logger()->sampler(); local
692 if (sampler == NULL || !sampler->IsActive()) return;
715 sampler->SampleStack(sample);
716 sampler->Tick(sample);
733 static void AddActiveSampler(Sampler* sampler) { argument
735 SamplerRegistry::AddActiveSampler(sampler);
746 instance_ = new SignalSender(sampler->interval());
749 ASSERT(instance_->interval_ == sampler
753 RemoveActiveSampler(Sampler* sampler) argument
809 DoCpuProfile(Sampler* sampler, void* raw_sender) argument
815 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
[all...]
H A Dplatform-linux.cc1041 Sampler* sampler = isolate->logger()->sampler(); local
1042 if (sampler == NULL || !sampler->IsActive()) return;
1076 sampler->SampleStack(sample);
1077 sampler->Tick(sample);
1122 static void AddActiveSampler(Sampler* sampler) { argument
1124 SamplerRegistry::AddActiveSampler(sampler);
1128 instance_ = new SignalSender(sampler->interval());
1131 ASSERT(instance_->interval_ == sampler
1135 RemoveActiveSampler(Sampler* sampler) argument
1191 DoCpuProfile(Sampler* sampler, void* raw_sender) argument
1197 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
[all...]
H A Dplatform-macos.cc756 static void AddActiveSampler(Sampler* sampler) { argument
758 SamplerRegistry::AddActiveSampler(sampler);
760 instance_ = new SamplerThread(sampler->interval());
763 ASSERT(instance_->interval_ == sampler->interval());
767 static void RemoveActiveSampler(Sampler* sampler) { argument
769 SamplerRegistry::RemoveActiveSampler(sampler);
804 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread) { argument
805 if (!sampler->isolate()->IsInitialized()) return;
806 if (!sampler->IsProfiling()) return;
809 sampler_thread->SampleContext(sampler);
812 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
817 SampleContext(Sampler* sampler) argument
[all...]
H A Dplatform-openbsd.cc744 Sampler* sampler = isolate->logger()->sampler(); local
745 if (sampler == NULL || !sampler->IsActive()) return;
776 sampler->SampleStack(sample);
777 sampler->Tick(sample);
822 static void AddActiveSampler(Sampler* sampler) { argument
824 SamplerRegistry::AddActiveSampler(sampler);
828 instance_ = new SignalSender(sampler->interval());
831 ASSERT(instance_->interval_ == sampler
835 RemoveActiveSampler(Sampler* sampler) argument
891 DoCpuProfile(Sampler* sampler, void* raw_sender) argument
897 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
[all...]
H A Dplatform-solaris.cc683 Sampler* sampler = isolate->logger()->sampler(); local
684 if (sampler == NULL || !sampler->IsActive()) return;
699 sampler->SampleStack(sample);
700 sampler->Tick(sample);
743 static void AddActiveSampler(Sampler* sampler) { argument
745 SamplerRegistry::AddActiveSampler(sampler);
749 instance_ = new SignalSender(sampler->interval());
752 ASSERT(instance_->interval_ == sampler
756 RemoveActiveSampler(Sampler* sampler) argument
813 DoCpuProfile(Sampler* sampler, void* raw_sender) argument
819 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
[all...]
H A Dlog.cc81 // This design minimizes the time spent in the sampler.
1679 Sampler* Logger::sampler() { function in class:v8::internal::Logger
1749 static void ComputeCpuProfiling(Sampler* sampler, void* flag_ptr) { argument
1751 *flag |= sampler->IsProfiling();
1764 void SamplerRegistry::AddActiveSampler(Sampler* sampler) { argument
1765 ASSERT(sampler->IsActive());
1770 ASSERT(!active_samplers_->Contains(sampler));
1772 active_samplers_->Add(sampler);
1776 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { argument
1777 ASSERT(sampler
[all...]
H A Dplatform-win32.cc1941 // going to use it in the sampler thread. Using GetThreadHandle() will
1972 static void AddActiveSampler(Sampler* sampler) { argument
1974 SamplerRegistry::AddActiveSampler(sampler);
1976 instance_ = new SamplerThread(sampler->interval());
1979 ASSERT(instance_->interval_ == sampler->interval());
1983 static void RemoveActiveSampler(Sampler* sampler) { argument
1985 SamplerRegistry::RemoveActiveSampler(sampler);
2020 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread) { argument
2021 if (!sampler->isolate()->IsInitialized()) return;
2022 if (!sampler
2028 DoRuntimeProfile(Sampler* sampler, void* ignored) argument
2033 SampleContext(Sampler* sampler) argument
[all...]
/external/openfst/src/include/fst/
H A Drandgen.h168 // sampler as it chooses. This generic version interprets this literally.
176 ArcSampler(const ArcSampler<A, S> &sampler, const Fst<A> *fst = 0) argument
177 : fst_(fst ? *fst : sampler.fst_),
178 arc_selector_(sampler.arc_selector_),
179 max_length_(sampler.max_length_) {
252 ArcSampler(const ArcSampler<A, S> &sampler, const Fst<A> *fst = 0) argument
253 : fst_(fst ? *fst : sampler.fst_),
254 arc_selector_(sampler.arc_selector_),
255 max_length_(sampler.max_length_) {
260 accumulator_ = new C(*sampler
[all...]
/external/skia/src/gpu/gl/
H A DGrGpuGLShaders.cpp368 *fHWDrawState.sampler(stage)->matrix() = matrix;
527 const GrSamplerState& sampler = this->getDrawState().getSampler(s); local
529 (fProgramData->fRadial2CenterX1[s] != sampler.getRadial2CenterX1() ||
530 fProgramData->fRadial2Radius0[s] != sampler.getRadial2Radius0() ||
531 fProgramData->fRadial2PosRoot[s] != sampler.isRadial2PosRoot())) {
533 GrScalar centerX1 = sampler.getRadial2CenterX1();
534 GrScalar radius0 = sampler.getRadial2Radius0();
549 sampler.isRadial2PosRoot() ? 1.f : -1.f
552 fProgramData->fRadial2CenterX1[s] = sampler.getRadial2CenterX1();
553 fProgramData->fRadial2Radius0[s] = sampler
559 const GrSamplerState& sampler = this->getDrawState().getSampler(s); local
[all...]
H A DGrGpuGL.cpp133 const GrSamplerState& sampler) {
135 if (!sampler.getMatrix().isIdentity()) {
444 fHWDrawState.sampler(s)->setRadial2Params(-GR_ScalarMax,
447 *fHWDrawState.sampler(s)->matrix() = GrMatrix::InvalidMatrix();
448 fHWDrawState.sampler(s)->setConvolutionParams(0, NULL);
1948 const GrSamplerState& sampler) {
1953 } else if (sampler.swapsRAndB()) {
1989 // bind texture and set sampler state
2019 const GrSamplerState& sampler = drawState->getSampler(s); local
2026 newTexParams.fFilter = gr_to_gl_filter(sampler
132 TextureMatrixIsIdentity(const GrGLTexture* texture, const GrSamplerState& sampler) argument
1947 get_swizzle(GrPixelConfig config, const GrSamplerState& sampler) argument
[all...]

Completed in 295 milliseconds

12