HomeSort by relevance Sort by last modified time
    Searched refs:Shader (Results 1 - 25 of 127) sorted by null

1 2 3 4 5 6

  /cts/tests/tests/graphics/src/android/graphics/cts/
ShaderTest.java 22 import android.graphics.Shader;
27 new Shader();
36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); local
39 shader.setLocalMatrix(m);
40 assertFalse(shader.getLocalMatrix(m));
42 shader.setLocalMatrix(null);
43 assertFalse(shader.getLocalMatrix(m))
    [all...]
Shader_TileModeTest.java 20 import android.graphics.Shader;
21 import android.graphics.Shader.TileMode;
  /frameworks/base/graphics/java/android/graphics/
ComposeShader.java 19 /** A subclass of shader that returns the coposition of two other shaders, combined by
22 public class ComposeShader extends Shader {
27 private final Shader mShaderA;
29 private final Shader mShaderB;
31 /** Create a new compose shader, given shaders A, B, and a combining mode.
32 When the mode is applied, it will be given the result from shader A as its
33 "dst", and the result from shader B as its "src".
34 @param shaderA The colors from this shader are seen as the "dst" by the mode
35 @param shaderB The colors from this shader are seen as the "src" by the mode
39 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode)
    [all...]
  /external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
Shader.cpp 7 // Shader.cpp: Implements the gl::Shader class and its derived classes
8 // VertexShader and FragmentShader. Implements GL shader objects and related
11 #include "libGLESv2/Shader.h"
21 void *Shader::mFragmentCompiler = NULL;
22 void *Shader::mVertexCompiler = NULL;
24 Shader::Shader(ResourceManager *manager, GLuint handle) : mHandle(handle), mResourceManager(manager)
30 // Perform a one-time initialization of the shader compiler (or after being destructed by releaseCompiler)
60 Shader::~Shader(
    [all...]
Shader.h 7 // Shader.h: Defines the abstract gl::Shader class and its concrete derived
8 // classes VertexShader and FragmentShader. Implements GL shader objects and
43 class Shader
48 Shader(ResourceManager *manager, GLuint handle);
50 virtual ~Shader();
75 DISALLOW_COPY_AND_ASSIGN(Shader);
85 unsigned int mRefCount; // Number of program objects this shader is attached to
86 bool mDeleteStatus; // Flag to indicate that the shader can be deleted when no longer in use
121 class VertexShader : public Shader
    [all...]
ResourceManager.h 23 class Shader;
52 void deleteShader(GLuint shader);
58 Shader *getShader(GLuint handle);
77 typedef std::map<GLuint, Shader*> ShaderMap;
  /external/webkit/Source/WebCore/platform/graphics/gpu/
LoopBlinnShader.h 29 #include "Shader.h"
35 class LoopBlinnShader : public Shader {
Shader.h 44 class Shader {
45 WTF_MAKE_NONCOPYABLE(Shader);
65 Shader(GraphicsContext3D*, unsigned program);
66 ~Shader();
SolidFillShader.cpp 43 : Shader(context, program)
53 generateVertex(Shader::TwoDimensional, Shader::SolidFill),
54 generateFragment(Shader::TwoDimensional, Shader::SolidFill, Shader::NotAntialiased));
TexShader.cpp 42 : Shader(context, program)
54 generateVertex(Shader::TwoDimensional, Shader::TextureFill),
55 generateFragment(Shader::TwoDimensional, Shader::TextureFill, Shader::NotAntialiased));
Shader.cpp 35 #include "Shader.h"
46 void Shader::affineTo3x3(const AffineTransform& transform, float mat[9])
60 void Shader::affineTo4x4(const AffineTransform& transform, float mat[16])
81 unsigned Shader::loadShader(GraphicsContext3D* context, unsigned type, const String& shaderSource)
83 unsigned shader = context->createShader(type); local
84 if (!shader)
87 context->shaderSource(shader, shaderSource);
88 context->compileShader(shader);
90 context->getShaderiv(shader, GraphicsContext3D::COMPILE_STATUS, &compileStatus);
92 String infoLog = context->getShaderInfoLog(shader);
    [all...]
BicubicShader.h 34 #include "Shader.h"
38 class BicubicShader : public Shader {
ConvolutionShader.h 34 #include "Shader.h"
38 class ConvolutionShader : public Shader {
SolidFillShader.h 34 #include "Shader.h"
38 class SolidFillShader : public Shader {
TexShader.h 34 #include "Shader.h"
38 class TexShader : public Shader {
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ResourceModifiers.java 28 import android.graphics.Shader;
63 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT,
64 Shader.TileMode.REPEAT);
66 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT,
67 Shader.TileMode.REPEAT);
73 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR,
74 Shader.TileMode.MIRROR);
80 Color.RED, Color.GREEN, Shader.TileMode.CLAMP);
88 Color.BLUE, Color.RED, Shader.TileMode.CLAMP);
91 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GradientStopsActivity.java 25 import android.graphics.Shader;
48 colors, positions, Shader.TileMode.CLAMP);
58 colors, positions, Shader.TileMode.CLAMP);
68 colors, positions, Shader.TileMode.CLAMP);
77 colors, null, Shader.TileMode.CLAMP);
85 colors, null, Shader.TileMode.REPEAT);
93 colors, null, Shader.TileMode.MIRROR);
101 colors, null, Shader.TileMode.CLAMP);
109 colors, null, Shader.TileMode.CLAMP);
117 colors, null, Shader.TileMode.CLAMP)
    [all...]
ShadersActivity.java 29 import android.graphics.Shader;
68 mRepeatShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT,
69 Shader.TileMode.REPEAT);
71 mTranslatedShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT,
72 Shader.TileMode.REPEAT);
78 mScaledShader = new BitmapShader(mTexture, Shader.TileMode.MIRROR,
79 Shader.TileMode.MIRROR);
85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP);
93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP);
96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR)
    [all...]
BigGradientActivity.java 24 import android.graphics.Shader;
45 0xff333333, Shader.TileMode.CLAMP));
AdvancedBlendActivity.java 31 import android.graphics.Shader;
69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR,
70 Shader.TileMode.MIRROR);
75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
76 Shader.TileMode.MIRROR);
82 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Patterns.java 54 private final Shader mShader1;
55 private final Shader mShader2;
74 mShader1 = new BitmapShader(makeBitmap1(), Shader.TileMode.REPEAT,
75 Shader.TileMode.REPEAT);
76 mShader2 = new BitmapShader(makeBitmap2(), Shader.TileMode.REPEAT,
77 Shader.TileMode.REPEAT);
ShapeDrawable1.java 38 private static Shader makeSweep() {
44 private static Shader makeLinear() {
47 null, Shader.TileMode.MIRROR);
50 private static Shader makeTiling() {
55 return new BitmapShader(bm, Shader.TileMode.REPEAT,
56 Shader.TileMode.REPEAT);
  /external/jmonkeyengine/engine/src/core/com/jme3/renderer/
Renderer.java 40 import com.jme3.shader.Shader;
41 import com.jme3.shader.Shader.ShaderSource;
116 * shader based.
124 * is shader based.
161 * Does nothing if the renderer is shader based.
170 * Sets the shader to use for rendering.
171 * If the shader has not been uploaded yet, it is compiled
173 * uniform data is updated and the shader is set
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPaint.java 5 import android.graphics.Shader;
27 private Shader shader; field in class:ShadowPaint
47 public Shader setShader(Shader shader) {
48 this.shader = shader;
49 return shader;
64 public Shader getShader()
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
BitmapDrawable.java 29 import android.graphics.Shader;
332 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat,
333 * {@link Shader.TileMode#REPEAT} or {@link Shader.TileMode#MIRROR} otherwise.
335 public Shader.TileMode getTileModeX() {
342 * @return {@link Shader.TileMode#CLAMP} if the bitmap does not repeat,
343 * {@link Shader.TileMode#REPEAT} or {@link Shader.TileMode#MIRROR} otherwise.
345 public Shader.TileMode getTileModeY() {
351 * does not repeat its bitmap. Using {@link Shader.TileMode#REPEAT} o
432 Shader shader = state.mPaint.getShader(); local
    [all...]

Completed in 2834 milliseconds

1 2 3 4 5 6